8000 Deprecated session.attribute_bag and session.flashbag which are data … · symfony/symfony@eef2f02 · GitHub
[go: up one dir, main page]

Skip to content

Commit eef2f02

Browse files
committed
Deprecated session.attribute_bag and session.flashbag which are data objects and should not be in the service container
1 parent eb0e47b commit eef2f02

File tree

1 file changed

+2
-0
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@
3737

3838
<service id="session.flash_bag" class="Symfony\Component\HttpFoundation\Session\Flash\FlashBag">
3939
<factory service="session" method="getFlashBag" />
40+
<deprecated>The "%service_id%" service is deprecated since Symfony 5.1</deprecated>
4041
</service>
4142
<service id="Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface" alias="session.flash_bag" />
4243

4344
<service id="session.attribute_bag" class="Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag">
4445
<factory service="session" method="getAttributeBag" />
46+
<deprecated>The "%service_id%" service is deprecated since Symfony 5.1</deprecated>
4547
</service>
4648

4749
<service id="session.storage.mock_file" class="Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage">

0 commit comments

Comments
 (0)
0