public function EarlyRenderingControllerWrapperSubscriber::__construct

public EarlyRenderingControllerWrapperSubscriber::__construct(ControllerResolverInterface $controller_resolver, RendererInterface $renderer)

Constructs a new EarlyRenderingControllerWrapperSubscriber instance.

Parameters

\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php, line 79

Class

EarlyRenderingControllerWrapperSubscriber
Subscriber that wraps controllers, to handle early rendering.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(ControllerResolverInterface $controller_resolver, RendererInterface $renderer) {
  $this->controllerResolver = $controller_resolver;
  $this->renderer = $renderer;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!EarlyRenderingControllerWrapperSubscriber.php/function/EarlyRenderingControllerWrapperSubscriber::__construct/8.1.x