FriendsOfSymfony / FOSUserBundle

Provides user management for your Symfony project. Compatible with Doctrine ORM & ODM, and custom storages.

Home Page:https://symfony.com/doc/master/bundles/FOSUserBundle/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Deprecated: Calling the "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead.

Alfro opened this issue · comments

Symfony FOSUserBundle versions: 2.2 (dev-master)

Description of the problem including expected versus actual behavior:
The arguments for the EventDispatcherInterface::dispatch() have changed order. The previous order is deprecated. (See https://symfony.com/blog/new-in-symfony-4-3-simpler-event-dispatching)

Steps to reproduce:

  1. Install Symfony 4
  2. Check for deprecations (for instance creating a new user: php bin/console fos:user:create -vv

Expected result:
No deprecated messages appear.

Result:
User Deprecated: Calling the "Symfony\Component\EventDispatcher\ " method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead.

Related to #2971, but different changes I believe