Skip to content

Commit 32c84e2

Browse files
authored
Add support for Symfony 5.3 (#35)
1 parent 4e8b9a3 commit 32c84e2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/config/framework.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ imports:
44
framework:
55
secret: test
66
test: ~
7-
session:
8-
storage_id: session.storage.mock_file
97
form: false
108
csrf_protection: false
119
validation:

src/config/parameters.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@
1717
'router' => ['utf8' => true],
1818
]);
1919
}
20+
21+
// Not setting the "framework.session.storage_factory_id" configuration option is deprecated in symfony 5.3
22+
if (\Symfony\Component\HttpKernel\Kernel::VERSION_ID >= 50300) {
23+
$container->loadFromExtension('framework', [
24+
'session' => ['storage_factory_id' => 'session.storage.factory.mock_file'],
25+
]);
26+
} else {
27+
$container->loadFromExtension('framework', [
28+
'session' => ['storage_id' => 'session.storage.mock_file'],
29+
]);
30+
}

0 commit comments

Comments
 (0)