Fatal error: Class 'AppBundle\AppBundle' n

2020-04-21 03:04发布

I try install DoctrineFixturesBundle in symfony 2.6.6 using this documentation. However, I get:

Fatal error: Class 'AppBundle\AppBundle' not found

If I remove AppBundle\AppBundle from AppKernel.php, I have the same problem with another bundle. I installed Symfony via the Symfony installer and my composer.json was empty before I added:

{
    "require": {
        "doctrine/doctrine-fixtures-bundle": "2.2.*"
    }
}

Maybe this is a part of the problem?

标签: symfony
1条回答
▲ chillily
2楼-- · 2020-04-21 03:28

You should add autoloading configuration to your composer.json.

查看更多
登录 后发表回答