class BigPipeSessionlessServiceProvider in Sessionless BigPipe 8
Same name and namespace in other branches
- 2.x src/BigPipeSessionlessServiceProvider.php \Drupal\big_pipe_sessionless\BigPipeSessionlessServiceProvider
Hierarchy
- class \Drupal\big_pipe_sessionless\BigPipeSessionlessServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of BigPipeSessionlessServiceProvider
See also
\Drupal\big_pipe_sessionless\EventSubscriber\HtmlResponseBigPipeSessionlessSubscriber
File
- src/
BigPipeSessionlessServiceProvider.php, line 14
Namespace
Drupal\big_pipe_sessionlessView source
class BigPipeSessionlessServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$container
->getDefinition('html_response.big_pipe_subscriber')
->setClass(HtmlResponseBigPipeSessionlessSubscriber::class)
->addArgument(new Reference('big_pipe_sessionless'))
->addArgument(new Reference('session_configuration'));
$container
->getDefinition('http_middleware.page_cache')
->setClass(BigPipeSessionlessPageCache::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BigPipeSessionlessServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |