DefaultRequestPolicy::__construct

public DefaultRequestPolicy::__construct(SessionConfigurationInterface $session_configuration)

Constructs the default page cache request policy.

Parameters

\Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration.

File

core/lib/Drupal/Core/PageCache/DefaultRequestPolicy.php, line 24

Class

DefaultRequestPolicy
The default page cache request policy.

Namespace

Drupal\Core\PageCache

Code

public function __construct(SessionConfigurationInterface $session_configuration) {
  $this->addPolicy(new CommandLineOrUnsafeMethod());
  $this->addPolicy(new NoSessionOpen($session_configuration));
}
doc_Drupal
2016-10-29 09:01:50
Comments
Leave a Comment

Please login to continue.