Skip to content

Enhance yaml-xml serialization groups configuration doc #447

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

Merged
merged 4 commits into from
Apr 20, 2018

Conversation

GregoireHebert
Copy link
Contributor

@baiiko
Copy link

baiiko commented Mar 22, 2018

Thanks for your help today @GregoireHebert !

# api/config/packages/api_platform.yaml
api_platform:
mapping:
paths: ['%kernel.project_dir%/config/api_platform']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also like to keep the default value:

paths:
    - '%kernel.project_dir%/src/Entity'
    - '%kernel.project_dir%/config/api_platform'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, Just added it :)


You might also need to update your framework configuration with this:

``` yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done automatically when using Flex. I'll drop this part.

mapping:
paths:
- '%kernel.project_dir%/src/Entity'
- '%kernel.project_dir%/config/api_platform'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment explaining that this is only useful if you use XML or YAML?

@GregoireHebert
Copy link
Contributor Author

GregoireHebert commented Mar 23, 2018

I rephrased the explanation above and add some comments on the configuration example.

@Simperfit
Copy link
Contributor

@dunglas could you please review that again ?

@GregoireHebert
Copy link
Contributor Author

ping @dunglas ;)

@dunglas dunglas dismissed their stale review April 20, 2018 08:34

Changes done directly in the branch

@dunglas dunglas merged commit 2623239 into api-platform:master Apr 20, 2018
@dunglas
Copy link
Member

dunglas commented Apr 20, 2018

Thanks @GregoireHebert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants