Symfony捆绑错误

时间:2017-07-06 11:17:15

标签: symfony

如何解决此错误。

我用控制台创建了一个包。但我得到以下代码的错误。我在哪里弄错了?

$bundles = array(
        new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
        new Symfony\Bundle\SecurityBundle\SecurityBundle(),
        new Symfony\Bundle\TwigBundle\TwigBundle(),
        new Symfony\Bundle\MonologBundle\MonologBundle(),
        new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
        new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
        new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
        new AppBundle\AppBundle(),
        new Acme\Bundle\BlogBundle\AcmeBundleBlogBundle(),
    );


Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "AcmeBundleBlogBundle" from namespace "Acme\Bundle\BlogBundle".
Did you forget a "use" statement for another namespace? in C:\nexampp\htdocs\my_project\app\AppKernel.php:20
Stack trace:
#0         C:\nexampp\htdocs\my_project\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php(433): AppKernel->registerBundles()

0 个答案:

没有答案