System\Route::callback PHP Méthode

callback() public méthode

Run actions
public callback ( $name ) : object | null
Résultat object | null
    public function callback($name)
    {
        if (isset($this->callbacks[$name])) {
            foreach (explode(',', $this->callbacks[$name]) as $action) {
                return call_user_func(Router::$actions[$action], $response);
            }
        }
    }