public function HtmlResponseBigPipeSessionlessSubscriber::__construct in Sessionless BigPipe 2.x
Same name and namespace in other branches
- 8 src/EventSubscriber/HtmlResponseBigPipeSessionlessSubscriber.php \Drupal\big_pipe_sessionless\EventSubscriber\HtmlResponseBigPipeSessionlessSubscriber::__construct()
Constructs a HtmlResponseBigPipeSessionlessSubscriber object.
Parameters
\Drupal\big_pipe\Render\BigPipe $big_pipe: The BigPipe service.
\Drupal\big_pipe_sessionless\Render\BigPipeSessionless $big_pipe_sessionless: The BigPipeSessionless service.
\Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration.
Overrides HtmlResponseBigPipeSubscriber::__construct
File
- src/
EventSubscriber/ HtmlResponseBigPipeSessionlessSubscriber.php, line 46
Class
- HtmlResponseBigPipeSessionlessSubscriber
- Response subscriber to replace the HtmlResponse with a BigPipeResponse.
Namespace
Drupal\big_pipe_sessionless\EventSubscriberCode
public function __construct(BigPipe $big_pipe, BigPipeSessionless $big_pipe_sessionless, SessionConfigurationInterface $session_configuration) {
parent::__construct($big_pipe);
$this->bigPipeSessionless = $big_pipe_sessionless;
$this->sessionConfiguration = $session_configuration;
}