You are here

public function ChainRouteCollection::addResource in Zircon Profile 8

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

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function addResource(ResourceInterface $resource) {
  $this
    ->createInternalCollection();
  $this->routeCollection
    ->addResource($resource);
}