-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Use ContainerAwareTrait #5884
Comments
@JHGitty Did you find an example in the docs that is not related to the KnpMenuBundle or should we close here in favour of the issue you linked? |
Both cases should be changed to extend |
Anybody can do it :-) I have not much time for it. |
@wouterj no, they should not extend Controller. They are not controllers. They should use the trait |
@stof unless I'm missing something, both search results are controllers. |
@stof WouterJ is talking about these lines: Both are controllers: FriendMessageController and MainController. |
ah sorry, indeed |
This PR was merged into the 2.3 branch. Discussion ---------- Removed the use of ContainerAware class | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #5884 Removing the use of `ContainerAware` in these examples required a heavy rewording. Please, review them. Thanks! Commits ------- b0cae3b Removed the use of ContainerAware class
Code from documentation:
http://symfony.com/doc/master/bundles/KnpMenuBundle/index.html#method-a-the-easy-way-yay
Maybe there are more code examples which should use ContainerAwareTrait.
The text was updated successfully, but these errors were encountered: