public function RouteCollection::addResource in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::addResource()
Adds a resource for this collection.
Parameters
ResourceInterface $resource A resource instance:
1 method overrides RouteCollection::addResource()
- ChainRouteCollection::addResource in vendor/
symfony-cmf/ routing/ ChainRouteCollection.php - Adds a resource for this collection.
File
- vendor/
symfony/ routing/ RouteCollection.php, line 273
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\RoutingCode
public function addResource(ResourceInterface $resource) {
$this->resources[] = $resource;
}