AuthcacheP13nBootstrapContextProvider.inc in Authenticated User Page Caching (Authcache) 7.2
Defines context provider for drupal bootstrap mechanism.
File
modules/authcache_p13n/includes/AuthcacheP13nBootstrapContextProvider.incView source
<?php
/**
* @file
* Defines context provider for drupal bootstrap mechanism.
*/
/**
* Interface for context providers.
*/
class AuthcacheP13nBootstrapContextProvider implements AuthcacheP13nContextProviderInterface {
/**
* @var AuthcacheP13nCoreService
*/
protected $coreService;
/**
* Bootstrap phase required to serve this request.
*/
protected $bootstrapPhase;
/**
* Construct new instance.
*/
public function __construct(AuthcacheP13nCoreServiceInterface $core_service, $bootstrap_phase = NULL) {
$this->coreService = $core_service;
$this->bootstrapPhase = $bootstrap_phase;
}
/**
* {@inheritdoc}
*/
public function get($input) {
return $this->coreService
->drupalBootstrap($this->bootstrapPhase);
}
}
Classes
Name | Description |
---|---|
AuthcacheP13nBootstrapContextProvider | Interface for context providers. |