I'm currently trying to upgrade my Symfony2 application to Symfony3. I have a SecurityController
that overwrites a FOSUserBundle\SecurityController
:
namespace Acme\MyBundle\Controller;
use Symfony\Component\DependencyInjection\ContainerAware;
class SecurityController extends ContainerAware
{
// ...
}
But I get a ClassNotFoundException
:
Attempted to load class "ContainerAware" from namespace "Symfony\Component\DependencyInjection".
Did you forget a "use" statement for another namespace?
Are there any changes that I cannot find in the upgrade notes. Can someone point me to a way to come over this?
Due to the changes from this PR, ContainerAware
has been deprecated in 2.8 and removed in 3.0 in favor of ContainerAwareTrait
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With