routes = $routes; parent::__construct(); } public function load($resource, $type = null) { $collection = new RouteCollection(); foreach ($this->routes as $routeResource) { $collection->addCollection( $this->import($routeResource, null) ); } return $collection; } public function supports($resource, $type = null) { return 'chill_routes' === $type; } }