You are here

public function BigPipe::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/big_pipe/src/Render/BigPipe.php \Drupal\big_pipe\Render\BigPipe::__construct()

Constructs a new BigPipe class.

Parameters

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

\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP kernel.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

core/modules/big_pipe/src/Render/BigPipe.php, line 224

Class

BigPipe
Service for sending an HTML response in chunks (to get faster page loads).

Namespace

Drupal\big_pipe\Render

Code

public function __construct(RendererInterface $renderer, SessionInterface $session, RequestStack $request_stack, HttpKernelInterface $http_kernel, EventDispatcherInterface $event_dispatcher, ConfigFactoryInterface $config_factory) {
  $this->renderer = $renderer;
  $this->session = $session;
  $this->requestStack = $request_stack;
  $this->httpKernel = $http_kernel;
  $this->eventDispatcher = $event_dispatcher;
  $this->configFactory = $config_factory;
}