public function CoreRequestPolicy::__construct in Tome 8
Constructs the CoreRequestPolicy object.
Parameters
\Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration.
File
- modules/
tome_static/ src/ PageCache/ RequestPolicy/ CoreRequestPolicy.php, line 24
Class
- CoreRequestPolicy
- Allows CLI page requests to be cached.
Namespace
Drupal\tome_static\PageCache\RequestPolicyCode
public function __construct(SessionConfigurationInterface $session_configuration) {
$this
->addPolicy(new UnsafeMethod());
$this
->addPolicy(new NoSessionOpen($session_configuration));
}