-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Add default mapping path for serializer component in bundle-less app #24833
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
Conversation
03685f1
to
a644a46
Compare
d4b9c2a
to
a1d852d
Compare
Not sure the |
AFAIK |
a1d852d
to
15ae20f
Compare
Changed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be merged in 3.4 as a bug fix. We should probably do the same for the validator component.
15ae20f
to
34a4b17
Compare
34a4b17
to
43895b8
Compare
Rebased to 3.4 (same opinion of @nicolas-grekas here #24856 (comment)) |
So, we are moving from |
I don't think we need to support the new name for the old paths. |
Thank you @yceruto. |
…component in bundle-less app (yceruto) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Add default mapping path for serializer component in bundle-less app | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | ToDo > http://symfony.com/doc/current/serializer.html#using-serialization-groups-annotations: > In addition to the @groups annotation, the Serializer component also supports Yaml or XML files. These files are automatically loaded when being stored in one of the following locations: >* The `serialization.yml` or `serialization.xml` file in the `Resources/config/` directory of a bundle; >* All `*.yml` and `*.xml` files in the `Resources/config/serialization/` directory of a bundle. Inspired by the second convention, this proposal adds one more but for bundle-less structure. Theoretically this is what it does for you: ```yaml framework: serializer: mapping: paths: - '%kernel.project_dir%/config/serializer/' ``` Commits ------- 43895b8 Add default mapping path for serializer component
…omponent in bundle-less app (yceruto) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Add default mapping path for validator component in bundle-less app | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | ToDo Same approach of symfony/symfony#24833 Commits ------- 4e0daecc63 Add default mapping path for validator component
…omponent in bundle-less app (yceruto) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Add default mapping path for validator component in bundle-less app | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | ToDo Same approach of #24833 Commits ------- 4e0daec Add default mapping path for validator component
Inspired by the second convention, this proposal adds one more but for bundle-less structure. Theoretically this is what it does for you: