public function DefaultRequestPolicy::__construct in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/PageCache/DefaultRequestPolicy.php \Drupal\Core\PageCache\DefaultRequestPolicy::__construct()
- 8 core/modules/dynamic_page_cache/src/PageCache/RequestPolicy/DefaultRequestPolicy.php \Drupal\dynamic_page_cache\PageCache\RequestPolicy\DefaultRequestPolicy::__construct()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/PageCache/DefaultRequestPolicy.php \Drupal\Core\PageCache\DefaultRequestPolicy::__construct()
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 27 - Contains \Drupal\Core\PageCache\DefaultRequestPolicy.
Class
- DefaultRequestPolicy
- The default page cache request policy.
Namespace
Drupal\Core\PageCacheCode
public function __construct(SessionConfigurationInterface $session_configuration) {
$this
->addPolicy(new RequestPolicy\CommandLineOrUnsafeMethod());
$this
->addPolicy(new RequestPolicy\NoSessionOpen($session_configuration));
}