B
B
BonBon Slick2018-09-17 13:18:51
symfony
BonBon Slick, 2018-09-17 13:18:51

Attempted to load class "ContainerAwareEventDispatcher"?

[email protected]:/srv/test$ console doctrine:migrations:migrate --no-debug 
In srcLocalProjectContainer.php line 1670:
                                                                               
  Attempted to load class "ContainerAwareEventDispatcher" from namespace "Sym  
  fony\Component\EventDispatcher".                                             
  Did you forget a "use" statement for another namespace?

There were all packages in the composer before this 3.4, then another developer updated to 4.1, now I rebuilt the virtual box, and ran composer install which updated all vendor packages to 4.1, and migrations began to fall.
Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Flying, 2018-09-17
@BonBonSlick

This class has been removed in 4.0, as noted in the Changelog . Check that your application does not use (and does not include through use) this class anywhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question