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)); }
Please login to continue.