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; }