Skip to content

Conversation

@mcg-web
Copy link
Contributor

@mcg-web mcg-web commented May 29, 2018

Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Documented? yes
Fixed tickets none
License MIT

Auto mapping configuration has been remove in favor of the Symfony 4+ service configuration.
TODO: Remove config entry from flex recipe for 0.12

@mcg-web mcg-web force-pushed the remove-auto-mapping-configuration branch from 264d1e5 to c50df7e Compare May 29, 2018 06:57
Copy link
Contributor

@renatomefi renatomefi left a comment

Choose a reason for hiding this comment

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

That looks amazing, should we put a new recipe on flex which already does the configuration for the types at least?

Overblog\GraphQLBundle\Definition\Resolver\MutationInterface:
tags: ['overblog_graphql.mutation']

App\GraphQL\:
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the idea of this one?

Copy link
Contributor

Choose a reason for hiding this comment

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

@mcg-web ping here :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is the entry where the DI will actually look for the classes. But I'm not sure I'm really understanding your question.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm afraid this sample is implying people have a GraphQL namespace within their source, which we don't actually know. So I'm asking to know if there's something else related to this namespace which I might have missed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should modify to resource: src/GraphQL instead as this was the default dir of auto mapping. What do you think of that, is it more explicit?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we don't even need this declaration, or is necessary for something?

@ogizanagi
Copy link
Contributor

That looks amazing, should we put a new recipe on flex which already does the configuration for the types at least?

This is unlikely to work in a recipe as the base Kernel class provided by the fwb recipe does load packages di config first, and then services.yaml:

https://github.com/symfony/recipes/blob/39244360f0f7c63437fb816be9189610542fc45b/symfony/framework-bundle/3.3/src/Kernel.php#L47-L48

which means definitions would be overwritten by:

https://github.com/symfony/recipes/blob/39244360f0f7c63437fb816be9189610542fc45b/symfony/framework-bundle/3.3/config/services.yaml#L16-L17

@mcg-web
Copy link
Contributor Author

mcg-web commented Jun 4, 2018

Thanks for the tips @ogizanagi 👍 , well will just remove config entry in 0.12 recipe and leave programmers follow documentation if needed.

@mcg-web mcg-web force-pushed the remove-auto-mapping-configuration branch 3 times, most recently from d1f0353 to c495e12 Compare August 19, 2018 17:34
This has been remove in favor of the Symfony 4+ service configuration.
@mcg-web mcg-web force-pushed the remove-auto-mapping-configuration branch from c495e12 to aff7f92 Compare September 9, 2018 20:21
@mcg-web mcg-web merged commit 88878c5 into overblog:master Sep 9, 2018
@mcg-web mcg-web deleted the remove-auto-mapping-configuration branch September 9, 2018 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants