registry = $registry; } public function load($resource, $type = null): RouteCollection { $routeCollection = new RouteCollection(); foreach ($this->registry->getAllRoutes() as $name => $route) { $routeCollection->add($name, $route); } return $routeCollection; } public function supports($resource, $type = null): bool { return $type === 'bolt_extensions'; } }