public function ChainRouteCollection::addResource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/ChainRouteCollection.php \Symfony\Cmf\Component\Routing\ChainRouteCollection::addResource()
Adds a resource for this collection.
Parameters
ResourceInterface $resource A resource instance:
Overrides RouteCollection::addResource
File
- vendor/
symfony-cmf/ routing/ ChainRouteCollection.php, line 259
Class
Namespace
Symfony\Cmf\Component\RoutingCode
public function addResource(ResourceInterface $resource) {
$this
->createInternalCollection();
$this->routeCollection
->addResource($resource);
}