diff --git a/src/Router.php b/src/Router.php index a7bf2c8..66aa5db 100755 --- a/src/Router.php +++ b/src/Router.php @@ -62,6 +62,7 @@ public function __construct(RouteCollection $collection, ContainerInterface $con { $this->routes = $collection; + // @todo remove this heavy operation from construct foreach ($this->routes->all() as $route) { $name = $route->getName(); if (null !== $name) {