public function tryCall($method, $arguments)
    {
        if ($ret = $this->hook('method-'.$method, $arguments)) {
            return $ret;
        }
        array_unshift($arguments, $this);
        if (($ret = $this->app->hook('global-method-'.$method, $arguments))) {
            return $ret;
        }
    }
public function tryCall($method, $arguments)
    {
        if ($ret = $this->hook('method-'.$method, $arguments)) {
            return $ret;
        }
        array_unshift($arguments, $this);
        if (($ret = $this->app->hook('global-method-'.$method, $arguments))) {
            return $ret;
        }
    }
public function tryCall ( $ method , $ arguments ) { if ( $ ret = $ this -> hook ( 'method-' . $ method , $ arguments ) ) { return $ ret ; } array_unshift ( $ arguments , $ this ) ; if ( ( $ ret = $ this -> app -> hook ( 'global-method-' . $ method , $ arguments ) ) ) { return $ ret ; } }
Attempts to call dynamic method. Returns array containing result or false.

@param string $method    Name of the method
@param array  $arguments Arguments

@return mixed
Attempts to call dynamic method . Returns array containing result or false .