-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Symfony 3.0 proposed backward incompatible changes #11742
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
Comments
the issue is only about generating asset uris. there is no request scope involved when using the router |
@stof updated the description of the issue. Thanks! |
@lyrixx you are right! But this is a WIP issue, so we still have to add tens (hundreds?) of issues. Anyway, I'm adding right now the issues that you proposed. Thanks! |
@javiereguiluz Can you change the title to "Symfony 3.0 proposed backward incompatible changes"? That will help me understand immediately that we're not re-documenting the UPGRADE-3.0 file, but are keeping track of things we want to do for 3.0. Thanks! |
@weaverryan done! Excuse me for the confusion. |
What about moving checks to the Symfony side from voters? |
@Koc
We don't need these methods in the interface, and enforcing their usage would make implementing voters more complex IMO |
As I made this PR, I find this name confusing: "Separate |
@iltar fixed! Thanks for noticing this error. |
I created a deprecation PR #11869 for removal of |
I removed #10645 from the list. |
I added the proposal of removing the Role and RoleInterface from the Security component which was suggested in #8313 (comment) |
I would suggest that we rename all event subscriber classes from Listener to Subscriber with 3.0 |
@sebastianblum No, a subscriber class can also be used as a regular listener one. That's why they are named like this and that should not be changed. |
I think this part of documentation should be updated in that case: http://symfony.com/doc/current/cookbook/bundles/best_practices.html#classes Proposal:
|
ref #9233, #6036 (comment) |
I updated the description with current state. |
#15709 deprecates the profiler:import/export commands |
@fabpot there is still a "remove prototype scope (#12585 (comment))" todo item which would mean removing the "shared" flag on the DI again which was just added. Is it really wanted? |
@Tobion this was discussed shortly during last meeting: https://gist.github.com/Nicofuma/2f75343c73aa75577b52#file-symfony-metting-L34-L81 |
I see. It seems people agreed that removing shared=false is not needed as it already exists and is documented (via prototype) and doesn't cause overhead. Factory use-cases also exist. So I'm removing that point from the list. |
|
…(fabpot) This PR was merged into the 2.8 branch. Discussion ---------- [WebProfilerBundle] deprecated import/export commands | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | part of #11742 | License | MIT | Doc PR | n/a Commits ------- 943fec9 [HtppKernel] deprecated Profiler::import/export 17e00b9 [WebProfilerBundle] deprecated import/export commands
…commands (jakzal) This PR was merged into the 3.0-dev branch. Discussion ---------- [WebProfilerBundle][HttpKernel] removed import/export commands | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | part of #11742 | License | MIT | Doc PR | n/a Follow up for #15709. Commits ------- c1d028e [HttpKernel] removed Profiler::import/export 1672a83 [WebProfilerBundle] removed import/export commands
I added #15849 in the list. I already thought about this in the past (always in cases when I was reviewing PRs related to optimizing the component btw), but it looks like I never opened an issue to discuss it. |
…ass methods (WouterJ) This PR was squashed before being merged into the 2.8 branch (closes #15151). Discussion ---------- [Security] Deprecated supportsAttribute and supportsClass methods These methods aren't used at all in a Symfony application and don't make sense to use in the application. They are only used internally in the voters. This means the voter interface can be made much easier. I'm not sure how we do these deprecations, should we remove the methods from the interface now already? Also, I don't think it's possible to trigger deprecation notices for the voter methods? | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | one of #11742 | License | MIT | Doc PR | - Abstract Voter --- There is one remaining question about the abstract voter. This currently has abstract `getSupportedAttributes()` and `getSupportedClass()` methods. One of the reasons to remove the methods for the interface was that these methods are not flexible. Does it make sense to deprecate these methods as well and replace them by an abstract `protected vote(array $attributes, $class)` method in the `AbstractVoter` (which is called from `AbstractVoter#vote()`) ? Commits ------- 6588708 [Security] Deprecated supportsAttribute and supportsClass methods
This PR was merged into the 2.8 branch. Discussion ---------- deprecated the Shell Console class | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | one of #11742 | License | MIT | Doc PR | n/a Commits ------- 1c17928 deprecated the Shell Console class
Closing this issue because we're so close to Symfony 3 launch that it no longer makes sense to have this meta-issue. |
@javiereguiluz Maybe we can create a new issue with the pending issues or rename this one to target 4.0 |
@dosten I think it would be better to create a new issue. |
…formatter (aitboudad) This PR was merged into the 3.4 branch. Discussion ---------- [Translation] added support for adding custom message formatter | Q | A | | --- | --- | | Branch? | master | | Bug fix? | no | | New feature? | yes | | BC breaks? | no | | Deprecations? | yes | | Tests pass? | yes | | Fixed tickets | #6009, #10152, one item in #11742, #11948 | | License | MIT | | Doc PR | ~ | Commits ------- 42183b0 [Translation] Support adding custom message formatter
…mmands (fabpot) This PR was merged into the 2.8 branch. Discussion ---------- [WebProfilerBundle] deprecated import/export commands | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | part of symfony#11742 | License | MIT | Doc PR | n/a Commits ------- 943fec9 [HtppKernel] deprecated Profiler::import/export 17e00b9 [WebProfilerBundle] deprecated import/export commands
This is a meta-issue that groups all the proposed backward incompatible changes for the upcoming Symfony 3.0 version. It includes more information than the 3.0 milestone because sometimes people propose ideas in the comments of the issues and pull requests.
Commands
assets:install
even smarter and create symlinks by default (without providing the--symlinks
option) (ref)Console
As one may want to rely on the asset helper to generate URIs outside from a request (i.e., in a command-line, for sending e-mails), it should not depend on the request service, but rather on request_stack, in order to be available in a wider scope. (ref, related)InputInterface
operates only with arguments passed to the Application. I suggest to add a method that would allow to operate with an input stream (STDIN
in case of CLI application). (ref)Symfony\Component\Console\Output\OutputInteface
should include the following methods:isQuiet
,isVerbose
,isVeryVerbose
andisDebug
. (ref, ref, [Console] Define isVerbose(), etc. methods in OutputInterface #13086)remove the shell feature (not that useful and bad side-effects see Shell and Doctrine #11750)DependencyInjection
Remove the concept of "scopes" for services. (ref [DI] Remove deprecated scope concept #15693)Remove all the*.class
container parameters that define the namespace of the classes of the services (ref removed all *.class parameters #14070)DomCrawler
Cleaning the Crawler API. (ref)Forms
IntegerType
should be used for whole integers as the name suggests and not for floats. (ref)NumberType
should be used for floats (rendering as aninput[type="number"]
), and have a new option (for instancesupport_locale_strings
) so that it renders asinput[type="text"]
and has the relevant attachedNumberToLocalizedStringTransformer
. (ref)attr
option are rendered both in the<form>
tag and in the<div>/<table>
tag of the form. (ref)FrameworkBundle
Methods of the baseController
class should beprotected
instead ofpublic
(ref)Removed unused logger from DelegatingLoader, see [FrameworkBundle] remove unused property in DelegatingLoader #6298HttpFoundation
Remove the request service (ref)Request->getRequestFormat()
should only rely on the request attributes. (ref)HttpKernel
RemoveisClassInActiveBundle()
method fromKernel
andKernelInterface
(ref)Security
supportsClass
andsupportAttribute
are actually never used in Symfony except by voters themselves. They should be removed from theVoterInterface
. (ref)CREETE
instead ofCREATE
), you'd see a clear message, rather than nobody voting and access being granted/denied 100% of the time based on your voting strategy. (ref)getUsername()
andloadUserByUsername()
because they are confusing. You can identify your users bu email for example, so hardcodingusername
doesn't look right (ref, ref)Deprecate SecurityContext and move its code to the AuthorizationChecker and TokenStorage. (ref)Translation
MessageFormatter
PHP class. (ref)Web Profiler
Remove the import/export feature of the Web Profiler. (ref) -> see [WebProfilerBundle] deprecated import/export commands #15709The text was updated successfully, but these errors were encountered: