-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Routing] @Route
is usable without SensioFrameworkBundle since 3.4
#8016
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
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.
What about @method - does that still require extra bundle?
configuration/micro_kernel_trait.rst
Outdated
But in this case, you need to download it: | ||
|
||
.. code-block:: bash | ||
|
||
$ composer require sensio/framework-extra-bundle | ||
$ composer require doctrine/annotations |
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.
Since the article requires symfony/symfony above, will doctrine annotations already be downloaded? I wasn't sure
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.
That's a good point, symfony/symfony
requires doctrine/common
which requires itself doctrine/annotations
so this section can indeed be removed. Thanks!
@weaverryan |
But instead of the |
@xabbuh indeed I just removed uses of |
Thank you @GuilhemN. |
…dle since 3.4 (GuilhemN) This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #8016). Discussion ---------- [Routing] `@Route` is usable without SensioFrameworkBundle since 3.4 Since symfony/symfony#23044, annotation routes are supported by the framework bundle. So I think we should push using the annotation of the Routing component instead of the one of SensioFrameworkExtraBundle. Commits ------- c0e466a [Routing] is usable without SensioFrameworkBundle since 3.4
Since symfony/symfony#23044, annotation routes are supported by the framework bundle. So I think we should push using the annotation of the Routing component instead of the one of SensioFrameworkExtraBundle.