protected function newHookableListener($sourceEvent, $targetEventName)
    {
        return function () use ($sourceEvent, $targetEventName) {
            $args = func_get_args();
            $targetEventName = $this->buildTargetEventName($sourceEvent, $targetEventName);
            return $this->target->fire($targetEventName, $args);
        };
    }
protected function newHookableListener($sourceEvent, $targetEventName)
    {
        return function () use ($sourceEvent, $targetEventName) {
            $args = func_get_args();
            $targetEventName = $this->buildTargetEventName($sourceEvent, $targetEventName);
            return $this->target->fire($targetEventName, $args);
        };
    }
protected function newHookableListener ( $ sourceEvent , $ targetEventName ) { return function ( ) use ( $ sourceEvent , $ targetEventName ) { $ args = func_get_args ( ) ; $ targetEventName = $ this -> buildTargetEventName ( $ sourceEvent , $ targetEventName ) ; return $ this -> target -> fire ( $ targetEventName , $ args ) ; } ; }
Creates a listener for a hookable object

@param string $sourceEvent
@param string $targetEventName

@return Closure
Creates a listener for a hookable object