protected function route($method, $url, $name, $controller) { $this->routes->{$method}($url, $name, $this->toController($controller)); }