Ошибка загрузки пакета Symfony 4

Я создал пакет в Symfony4, следуя Symfony 4 комплект документов

мой класс связки такой:

<?php
namespace Infrastructure\Delivery\Frontend\TodoBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class TodoBundle extends Bundle
{
}

и я включил пакет в config / bundles.php следующим образом:

<?php

return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true],
Infrastructure\Delivery\Frontend\TodoBundle\TodoBundle::class =>['all' => true]
];

когда я пытаюсь запустить, сервер Symfony показывает мне эту ошибку:

(1/1) ClassNotFoundException

Attempted to load class "TodoBundle" from namespace "Infrastructure\Delivery\Frontend\TodoBundle".
Did you forget a "use" statement for another namespace?

Я проверял файлы много раз, но я не нашел, где ошибка.
Кто-нибудь может мне помочь?

Спасибо

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector