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
[RFC] Move annotations from SensioFrameworkExtraBundle to Symfony core #25361
Comments
Duplicate of #25103 |
Not entirely 😄 The other PR only talks about routing. Here we are talking about all annotations. |
I really like the idea of moving annotations and param converters to respective packages or a bridge on core, its a really common and advised practice to use it and core should own it |
I'm with @bitgandtter on this one - I've never used routing annotations (I don't like my routing to be spread over 100+ files and their annotations) but I do use ParamConverters wherever possible, and the security annotations on class levels as extra guard. As far as I'm concerned these things are and should be core. |
Great idea. |
Why in the core? IMHO a dedicated component (or bridge/bundle) would be better |
I agree with @garak but only if this new bridge or bundle is set as a dependency of the FrameworkBundle |
This is not going to happen: splitting is a significant effort. Unless you want to make it happen... |
This PR was merged into the master branch. Discussion ---------- Use the Route annotation from Symfony core Related to symfony/symfony#25361. Commits ------- f35cddb Use the Route annotation from Symfony core
Closing because thanks to the new PHP 8 attributes, we shouldn't focus on PHPdoc-based annotations but on creating new attributes. |
It should be the same, annotations, or attributes the main idea of this issue its to not depend on framework extra bundle for these common and high used features. IMO this issue it's still valid, maybe change the name but the scope it's still true |
Thank you for this suggestion. |
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this. |
Leave it open, please. |
Meanwhile sensiolabs/SensioFrameworkExtraBundle#707 at this point maybe just close along with #40571, and take a per-concept approach |
Closing in favor of #44705. |
Oh right, there was already an issue open. 😅 |
This PR was merged into the master branch. Discussion ---------- Use the Route annotation from Symfony core Related to symfony/symfony#25361. Commits ------- f35cddb Use the Route annotation from Symfony core
This PR was merged into the master branch. Discussion ---------- Use the Route annotation from Symfony core Related to symfony/symfony#25361. Commits ------- f35cddb Use the Route annotation from Symfony core
SensioFrameworkExtraBundle provides three main features:
@Route()
,@Security()
, ...)This proposal is only about annotations. We started moving some annotations into Symfony core, but we only moved one of them and that's why now we have two
@Route
annotations:So, should we move the rest of annotations to avoid mixing namespaces like this?
If you agree with this, should we move each annotation to the related package?
Or should we put all annotations in the same place to make things simple?
The text was updated successfully, but these errors were encountered: