src/Router.php
protected function exec($name, array $params = array())
    {
        if ($this->has($name)) {
            if (empty($params)) {
                $params = $this->params;
            }
            $callback = $this->routes[$name]['callback'];
            if (is_callable($callback)) {
                $response = new Response();
                $buffer = new OutputBuffer();
                $buffer->start();
                echo call_user_func_array($callback, $params);
                $response->body = $buffer->end();
                $response->send();
            } elseif (class_exists($callback)) {
                $controller = new $callback($params);
            }

            return true;
        }

        return false;
    }
protected function exec($name, array $params = array())
    {
        if ($this->has($name)) {
            if (empty($params)) {
                $params = $this->params;
            }
            $callback = $this->routes[$name]['callback'];
            if (is_callable($callback)) {
                $response = new Response();
                $buffer = new OutputBuffer();
                $buffer->start();
                echo call_user_func_array($callback, $params);
                $response->body = $buffer->end();
                $response->send();
            } elseif (class_exists($callback)) {
                $controller = new $callback($params);
            }

            return true;
        }

        return false;
    }
Führt die Route aus, die unter dem Namen $name registriert ist.
Wurde die Route gefunden und ausgeführt wird TRUE zurückgeliefert, andernfalls
FALSE.

@param string $name Name der Route, die ausgeführt werden soll.

@return bool