You are here

class BigPipeSessionlessServiceProvider in Sessionless BigPipe 8

Same name and namespace in other branches
  1. 2.x src/BigPipeSessionlessServiceProvider.php \Drupal\big_pipe_sessionless\BigPipeSessionlessServiceProvider

Hierarchy

Expanded class hierarchy of BigPipeSessionlessServiceProvider

See also

\Drupal\big_pipe_sessionless\EventSubscriber\HtmlResponseBigPipeSessionlessSubscriber

File

src/BigPipeSessionlessServiceProvider.php, line 14

Namespace

Drupal\big_pipe_sessionless
View 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

Namesort descending Modifiers Type Description Overrides
BigPipeSessionlessServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter