src/DynamicMethodTrait.php
public function tryCall($method, $arguments)
    {
        if (isset($this->_hookTrait) && $ret = $this->hook('method-'.$method, $arguments)) {
            return $ret;
        }

        if (isset($this->_appScopeTrait) && isset($this->app->_hookTrait)) {
            array_unshift($arguments, $this);
            if ($ret = $this->app->hook('global-method-'.$method, $arguments)) {
                return $ret;
            }
        }
    }
public function tryCall($method, $arguments)
    {
        if (isset($this->_hookTrait) && $ret = $this->hook('method-'.$method, $arguments)) {
            return $ret;
        }

        if (isset($this->_appScopeTrait) && isset($this->app->_hookTrait)) {
            array_unshift($arguments, $this);
            if ($ret = $this->app->hook('global-method-'.$method, $arguments)) {
                return $ret;
            }
        }
    }
public function tryCall ( $ method , $ arguments ) { if ( isset ( $ this -> _hookTrait ) && $ ret = $ this -> hook ( 'method-' . $ method , $ arguments ) ) { return $ ret ; } if ( isset ( $ this -> _appScopeTrait ) && isset ( $ this -> app -> _hookTrait ) ) { array_unshift ( $ arguments , $ this ) ; if ( $ ret = $ this -> app -> hook ( 'global-method-' . $ method , $ arguments ) ) { return $ ret ; } } }
Tries to call dynamic method.

@param string $name      Name of the method
@param array  $arguments Array of arguments to pass to this method

@return mixed|null
Tries to call dynamic method .