-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
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
- Make
assets:installeven smarter and create symlinks by default (without providing the--symlinksoption) (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)InputInterfaceoperates only with arguments passed to the Application. I suggest to add a method that would allow to operate with an input stream (STDINin case of CLI application). (ref)Symfony\Component\Console\Output\OutputIntefaceshould include the following methods:isQuiet,isVerbose,isVeryVerboseandisDebug. (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*.classcontainer parameters that define the namespace of the classes of the services (ref removed all *.class parameters #14070)- ...
DomCrawler
Forms
IntegerTypeshould be used for whole integers as the name suggests and not for floats. (ref)NumberTypeshould 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)- Remove duplicated HTML attributes. Right now, the attributes passed in the
attroption are rendered both in the<form>tag and in the<div>/<table>tag of the form. (ref) - ...
FrameworkBundle
Methods of the baseControllerclass should beprotectedinstead ofpublic(ref)Removed unused logger from DelegatingLoader, see [FrameworkBundle] remove unused property in DelegatingLoader #6298- ...
HttpFoundation
Remove the request service (ref)- Lazy initialization of Request headers. This can be a perfomance improvement for all requests which does not operate with request headers (almost all?) (ref)
Request->getRequestFormat()should only rely on the request attributes. (ref)- Deprecate session as a service (ref)
- ...
HttpKernel
RemoveisClassInActiveBundle()method fromKernelandKernelInterface(ref)
Security
supportsClassandsupportAttributeare actually never used in Symfony except by voters themselves. They should be removed from theVoterInterface. (ref)- A clear exception should be thrown if no voters voted on an attribute. So if you did a typo (e.g.
CREETEinstead 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) - Update UserInterface and UserProviderInterface to change the name of the methods
getUsername()andloadUserByUsername()because they are confusing. You can identify your users bu email for example, so hardcodingusernamedoesn't look right (ref, ref) Deprecate SecurityContext and move its code to the AuthorizationChecker and TokenStorage. (ref)- Remove the RoleInterface and the Role class in favor of using strings only for roles: [Security] RoleSecurityIdentity checks for instances of RoleInterface to allow custom Role implementation #8313 (comment)
- ...
Translation
- Replace custom and hackish solutions (PR 4884, PR 5547) by the standard
MessageFormatterPHP class. (ref) - ...
Web Profiler
Remove the import/export feature of the Web Profiler. (ref) -> see [WebProfilerBundle] deprecated import/export commands #15709- ...
Metadata
Metadata
Assignees
Labels
No labels