Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FrameworkBundle] Fix session.attribute_bag service definition #36506

Merged
merged 1 commit into from Apr 21, 2020

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #36465
License MIT
Doc PR -

It looks like in #36063, the fact the the getAttributeBag method is private was forgotten. It cannot be used as the factory method. I guess we can make it public. Should it maybe marked @internal?

@nicolas-grekas
Copy link
Member

I'd suggest changing the factory method: it should be getBag('attributes') instead.

@fancyweb
Copy link
Contributor Author

I thought about this but $this->attributeName is dynamic. We don't care?

@nicolas-grekas
Copy link
Member

It's not dynamic in the context of wiring.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 20, 2020
@fancyweb fancyweb force-pushed the session-get-attribute-bag branch 2 times, most recently from 05220fa to 293d4e4 Compare April 20, 2020 16:39
@fancyweb fancyweb changed the title [Session] Make the getAttributeBag method public [FrameworkBundle] Fix session.attribute_bag service definition Apr 20, 2020
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit 6642f09 into symfony:3.4 Apr 21, 2020
@fancyweb fancyweb deleted the session-get-attribute-bag branch April 22, 2020 06:59
This was referenced Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants