浏览代码

Suppression des deprecated

François Drouhard 3 年之前
父节点
当前提交
230ed594c1
共有 3 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      config/packages/framework.yaml
  2. 1 1
      config/packages/test/framework.yaml
  3. 1 1
      src/Service/ActivityListener.php

+ 1 - 0
config/packages/framework.yaml

@@ -10,6 +10,7 @@ framework:
         handler_id: null
         cookie_secure: auto
         cookie_samesite: lax
+        storage_factory_id: 'session.storage.factory.native'
 
     #esi: true
     #fragments: true

+ 1 - 1
config/packages/test/framework.yaml

@@ -1,4 +1,4 @@
 framework:
     test: true
     session:
-        storage_id: session.storage.mock_file
+        storage_factory_id: session.storage.mock_file

+ 1 - 1
src/Service/ActivityListener.php

@@ -21,7 +21,7 @@ class ActivityListener
     {
         // Check that the current request is a "MASTER_REQUEST"
         // Ignore any sub-request
-        if (!$event->isMasterRequest()) {
+        if (!$event->isMainRequest()) {
             return;
         }