8000 Fixed 33084 - Changed flashbag service to be created using session se… · symfony/symfony@ff4754e · GitHub
[go: up one dir, main page]

Skip to content

Commit ff4754e

Browse files
committed
Fixed 33084 - Changed flashbag service to be created using session service as a factory
1 parent 1cb0b1b commit ff4754e

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<service id="session" class="Symfony\Component\HttpFoundation\Session\Session" public="true">
1515
<argument type="service" id="session.storage" />
1616
<argument type="service" id="session.attribute_bag" />
17-
<argument type="service" id="session.flash_bag" />
1817
</service>
1918

2019
<service id="Symfony\Component\HttpFoundation\Session\SessionInterface" alias="session" />
@@ -37,7 +36,9 @@
3736
<argument type="service" id="session.storage.metadata_bag" />
3837
</service>
3938

40-
<service id="session.flash_bag" class="Symfony\Component\HttpFoundation\Session\Flash\FlashBag" />
39+
<service id="session.flash_bag" class="Symfony\Component\HttpFoundation\Session\Flash\FlashBag">
40+
<factory service="session" method="getFlashBag"/>
41+
</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" />

0 commit comments

Comments
 (0)
0