Skip to content

Remove unnecessary configuration for controllers #710

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 1 commit into from
Nov 29, 2017
Merged

Remove unnecessary configuration for controllers #710

merged 1 commit into from
Nov 29, 2017

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Nov 28, 2017

This configuration is only necessary for service controllers that don't extend from Controller or AbstractController, which is not the case here.

It is not clear in the recipe (in this sense) but the documentation is clear enough:

http://symfony.com/doc/current/controller.html#fetching-services-as-controller-arguments
If you're not using the default configuration, you can tag your service manually with controller.service_arguments.

@javiereguiluz
Copy link
Member

Thank you Yonel.

@javiereguiluz javiereguiluz merged commit 1682f19 into symfony:master Nov 29, 2017
javiereguiluz added a commit that referenced this pull request Nov 29, 2017
This PR was merged into the master branch.

Discussion
----------

Remove unnecessary configuration for controllers

This configuration is only necessary for service controllers that don't extend from `Controller` or `AbstractController`, which is not the case here.

It is not clear in the recipe (in this sense) but the documentation is clear enough:
> http://symfony.com/doc/current/controller.html#fetching-services-as-controller-arguments
> If you're not using the default configuration, you can tag your service manually with `controller.service_arguments`.

Commits
-------

1682f19 Remove unnecessary configuration for controllers
@yceruto yceruto deleted the controller_config branch November 29, 2017 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants