framework/components/eventhandler/BasicObjectDecorator.php
public function invoke($methodName, array $arguments = [])
    {
        $this->trigger(self::EVENT_BEFORE_METHOD);
        $result = call_user_func_array([$this->o, $methodName], $arguments);
        $this->trigger(self::EVENT_AFTER_METHOD);
        return $result;
    }
public function invoke($methodName, array $arguments = [])
    {
        $this->trigger(self::EVENT_BEFORE_METHOD);
        $result = call_user_func_array([$this->o, $methodName], $arguments);
        $this->trigger(self::EVENT_AFTER_METHOD);
        return $result;
    }
public function invoke ( $ methodName , array $ arguments = [ ] ) { $ this -> trigger ( self :: EVENT_BEFORE_METHOD ) ; $ result = call_user_func_array ( [ $ this -> o , $ methodName ] , $ arguments ) ; $ this -> trigger ( self :: EVENT_AFTER_METHOD ) ; return $ result ; }
Invoke method in decorated object

@param string $methodName
@param array $arguments
@return mixed
Invoke method in decorated object