You are here

public function ContentAwareGenerator::setContentRepository in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/ContentAwareGenerator.php \Symfony\Cmf\Component\Routing\ContentAwareGenerator::setContentRepository()

Set an optional content repository to find content by ids

Parameters

ContentRepositoryInterface $contentRepository:

File

vendor/symfony-cmf/routing/ContentAwareGenerator.php, line 52

Class

ContentAwareGenerator
A generator that tries to generate routes from object, route names or content objects or names.

Namespace

Symfony\Cmf\Component\Routing

Code

public function setContentRepository(ContentRepositoryInterface $contentRepository) {
  $this->contentRepository = $contentRepository;
}