Skip to content

Commit

Permalink
Fixed 33084 - Changed flashbag service to be created using session se…
Browse files Browse the repository at this point in the history
…rvice as a factory
  • Loading branch information
warslett committed Mar 13, 2020
1 parent ed42313 commit 67d178e
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -14,7 +14,6 @@
<service id="session" class="Symfony\Component\HttpFoundation\Session\Session" public="true">
<argument type="service" id="session.storage" />
<argument type="service" id="session.attribute_bag" />
<argument type="service" id="session.flash_bag" />
</service>

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

<service id="session.flash_bag" class="Symfony\Component\HttpFoundation\Session\Flash\FlashBag" />
<service id="session.flash_bag" class="Symfony\Component\HttpFoundation\Session\Flash\FlashBag">
<factory service="session" method="getFlashBag"/>
</service>
<service id="Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface" alias="session.flash_bag" />

<service id="session.attribute_bag" class="Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag" />
Expand Down

0 comments on commit 67d178e

Please sign in to comment.