Skip to content

Commit 8b5cbfd

Browse files
committed
Changed session.attribute_bag to be built using session as a factory for consistency with session.flash_bag
1 parent 67d178e commit 8b5cbfd

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
@@ -13,7 +13,6 @@
1313

1414
<service id="session" class="Symfony\Component\HttpFoundation\Session\Session" public="true">
1515
<argument type="service" id="session.storage" />
16-
<argument type="service" id="session.attribute_bag" />
1716
</service>
1817

1918
<service id="Symfony\Component\HttpFoundation\Session\SessionInterface" alias="session" />
@@ -41,7 +40,9 @@
4140
</service>
4241
<service id="Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface" alias="session.flash_bag" />
4342

44-
<service id="session.attribute_bag" class="Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag" />
43+
<service id="session.attribute_bag" class="Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag">
44+
<factory service="session" method="getAttributeBag"/>
45+
</service>
4546

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

0 commit comments

Comments
 (0)