Skip to content
The security system is one of the most powerful parts of Symfony and can largely be controlled via its configuration.
Branch: master
Clone or download
fabpot feature #28920 [EventDispatcher] swap arguments of dispatch() to allo…
…w registering events by FQCN (nicolas-grekas)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[EventDispatcher] swap arguments of dispatch() to allow registering events by FQCN

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

PR green and ready. From UPGRADE files:

 EventDispatcher
---------------

 * The signature of the `EventDispatcherInterface::dispatch()` method should be updated to `dispatch($event, string $eventName = null)`, not doing so is deprecated

HttpKernel
----------

 * Renamed `FilterControllerArgumentsEvent` to `ControllerArgumentsEvent`
 * Renamed `FilterControllerEvent` to `ControllerEvent`
 * Renamed `FilterResponseEvent` to `ResponseEvent`
 * Renamed `GetResponseEvent` to `RequestEvent`
 * Renamed `GetResponseForControllerResultEvent` to `ViewEvent`
 * Renamed `GetResponseForExceptionEvent` to `ExceptionEvent`
 * Renamed `PostResponseEvent` to `TerminateEvent`

Security
---------

 * The `ListenerInterface` is deprecated, turn your listeners into callables instead.
 * The `Firewall::handleRequest()` method is deprecated, use `Firewall::callListeners()` instead.

Commits
-------

75369dabb8 [EventDispatcher] swap arguments of dispatch() to allow registering events by FQCN
Latest commit 8225fef Mar 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CacheWarmer fixed CS Jan 16, 2019
Command fixed CS Jan 16, 2019
DataCollector deprecate the Role and SwitchUserRole classes Feb 22, 2019
Debug
DependencyInjection [Templating] added more deprecation Mar 19, 2019
EventListener [EventDispatcher] swap arguments of dispatch() to allow registering e… Mar 14, 2019
Resources
Security Merge branch '4.1' into 4.2 Jan 16, 2019
Templating/Helper [Templating] added more deprecation Mar 19, 2019
Tests [EventDispatcher] swap arguments of dispatch() to allow registering e… Mar 14, 2019
.gitignore
CHANGELOG.md
LICENSE update year in license files Jan 1, 2019
README.md
SecurityBundle.php [Security] Deprecate simple_preauth and simple_form in favor of Guard Oct 3, 2018
SecurityUserValueResolver.php
composer.json [EventDispatcher] swap arguments of dispatch() to allow registering e… Mar 14, 2019
phpunit.xml.dist

README.md

You can’t perform that action at this time.