You are here

public function LazyLoadingFragmentHandler::addRendererService in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/DependencyInjection/LazyLoadingFragmentHandler.php \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler::addRendererService()

Adds a service as a fragment renderer.

Parameters

string $renderer The render service id:

File

vendor/symfony/http-kernel/DependencyInjection/LazyLoadingFragmentHandler.php, line 40

Class

LazyLoadingFragmentHandler
Lazily loads fragment renderers from the dependency injection container.

Namespace

Symfony\Component\HttpKernel\DependencyInjection

Code

public function addRendererService($name, $renderer) {
  $this->rendererIds[$name] = $renderer;
}