class AuthcacheP13nBootstrapContextProvider in Authenticated User Page Caching (Authcache) 7.2
Interface for context providers.
Hierarchy
- class \AuthcacheP13nBootstrapContextProvider implements AuthcacheP13nContextProviderInterface
Expanded class hierarchy of AuthcacheP13nBootstrapContextProvider
2 string references to 'AuthcacheP13nBootstrapContextProvider'
- AuthcacheP13nTestRequestBuilder::testRequestResourcesNullFragments in modules/
authcache_p13n/ tests/ authcache_p13n.request-builder.test - Cover authcache_p13n_request_resources().
- authcache_p13n_authcache_p13n_base_request in modules/
authcache_p13n/ authcache_p13n.module - Implements hook_authcache_p13n_base_request().
File
- modules/
authcache_p13n/ includes/ AuthcacheP13nBootstrapContextProvider.inc, line 11 - Defines context provider for drupal bootstrap mechanism.
View source
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nBootstrapContextProvider:: |
protected | property | Bootstrap phase required to serve this request. | |
AuthcacheP13nBootstrapContextProvider:: |
protected | property | ||
AuthcacheP13nBootstrapContextProvider:: |
public | function |
Build and return context for the current request. Overrides AuthcacheP13nContextProviderInterface:: |
|
AuthcacheP13nBootstrapContextProvider:: |
public | function | Construct new instance. |