Zend\Mvc\Controller\AbstractController::__call PHP 메소드

__call() 공개 메소드

If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
public __call ( string $method, array $params ) : mixed
$method string
$params array
리턴 mixed
    public function __call($method, $params)
    {
        $plugin = $this->plugin($method);
        if (is_callable($plugin)) {
            return call_user_func_array($plugin, $params);
        }
        return $plugin;
    }