Namespace issues when upgrading Symfony3

I am currently trying to upgrade a Symfony2 application to Symfony3. I have SecurityControllerone that overwrites FOSUserBundle\SecurityController:

namespace Acme\MyBundle\Controller;

use Symfony\Component\DependencyInjection\ContainerAware;

class SecurityController extends ContainerAware
{
    // ...
}

But I get ClassNotFoundException:

Attempted to load the "ContainerAware" class from the "Symfony \ Component \ DependencyInjection" namespace.
Did you forget the "use" operator for another namespace?

Are there any changes that I cannot find in the update notes. Can someone point me to a way to do this?

+4
source share
1 answer

- PR, ContainerAware 2.8 3.0 ContainerAwareTrait

+5

Source: https://habr.com/ru/post/1620898/


All Articles