This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/UPGRADE-4.1.md
Fabien Potencier 0a56a37953 feature #24392 Display orphaned events in profiler (kejwmen)
This PR was squashed before being merged into the 4.1-dev branch (closes #24392).

Discussion
----------

Display orphaned events in profiler

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #24347
| License       | MIT

Implements #24347.

Deprecating `TraceableEventDispatcherInterface`.

Commits
-------

509f9a9233 Display orphaned events in profiler
2018-01-19 08:23:48 +01:00

1.7 KiB

UPGRADE FROM 4.0 to 4.1

EventDispatcher

  • The TraceableEventDispatcherInterface has been deprecated and will be removed in 5.0.

HttpFoundation

  • Passing the file size to the constructor of the UploadedFile class is deprecated and won't be supported anymore in 5.0.

  • The getClientSize() method of the UploadedFile class is deprecated. Use getSize() instead.

Security

  • The ContextListener::setLogoutOnUserChange() method is deprecated and will be removed in 5.0.

SecurityBundle

  • The logout_on_user_change firewall option is deprecated and will be removed in 5.0.
  • The SecurityUserValueResolver class is deprecated and will be removed in 5.0, use Symfony\Component\Security\Http\Controller\UserValueResolver instead.

Translation

  • The FileDumper::setBackup() method is deprecated and will be removed in 5.0.
  • The TranslationWriter::disableBackup() method is deprecated and will be removed in 5.0.

Validator

  • The Email::__construct() 'strict' property is deprecated and will be removed in 5.0. Use 'mode'=>"strict" instead.
  • Calling EmailValidator::__construct() method with a boolean parameter is deprecated and will be removed in 5.0, use EmailValidator("strict") instead.
  • Deprecated the checkDNS and dnsMessage options of the Url constraint. They will be removed in 5.0.

Workflow

  • Deprecated the add method in favor of the addWorkflow method in Workflow\Registry.
  • Deprecated SupportStrategyInterface in favor of WorkflowSupportStrategyInterface.
  • Deprecated the class ClassInstanceSupportStrategy in favor of the class InstanceOfSupportStrategy.