Autarky\Routing\Router::createRoute PHP Method

createRoute() protected method

protected createRoute ( $methods, $path, $controller, $name, array $options )
$options array
    protected function createRoute($methods, $path, $controller, $name, array $options)
    {
        $route = new Route($methods, $path, $controller, $name, $options);
        foreach ($this->currentHooks as $hook) {
            $route->addHook($hook[0], $hook[1]);
        }
        return $route;
    }