Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Drupal\Core\PageCache;
|
||||
|
||||
use Drupal\Core\PageCache\RequestPolicy\CommandLineOrUnsafeMethod;
|
||||
use Drupal\Core\PageCache\RequestPolicy\NoSessionOpen;
|
||||
use Drupal\Core\Session\SessionConfigurationInterface;
|
||||
|
||||
/**
|
||||
|
@ -20,8 +22,8 @@ class DefaultRequestPolicy extends ChainRequestPolicy {
|
|||
* The session configuration.
|
||||
*/
|
||||
public function __construct(SessionConfigurationInterface $session_configuration) {
|
||||
$this->addPolicy(new RequestPolicy\CommandLineOrUnsafeMethod());
|
||||
$this->addPolicy(new RequestPolicy\NoSessionOpen($session_configuration));
|
||||
$this->addPolicy(new CommandLineOrUnsafeMethod());
|
||||
$this->addPolicy(new NoSessionOpen($session_configuration));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -42,4 +42,3 @@ class DenyNoCacheRoutes implements ResponsePolicyInterface {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue