Skip to content

Commit

Permalink
Changed session.attribute_bag to be built using session as a factory …
Browse files Browse the repository at this point in the history
…for consistency with session.flash_bag
  • Loading branch information
warslett committed Mar 13, 2020
1 parent 67d178e commit 8b5cbfd
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -13,7 +13,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" />
</service>

<service id="Symfony\Component\HttpFoundation\Session\SessionInterface" alias="session" />
Expand Down Expand Up @@ -41,7 +40,9 @@
</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" />
<service id="session.attribute_bag" class="Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag">
<factory service="session" method="getAttributeBag"/>
</service>

<service id="session.storage.mock_file" class="Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage">
<argument>%kernel.cache_dir%/sessions</argument>
Expand Down

0 comments on commit 8b5cbfd

Please sign in to comment.