You are here

public function RouteCollection::addResource in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Routing

Code

public function addResource(ResourceInterface $resource) {
  $this->resources[] = $resource;
}