Я создал пакет с symfony 2.3, но в этом случае (потому что мой учитель спросил меня) за пределами папки src/
, поэтому у меня есть ../symfony/fuentes/NameBundle
вместо ../symfony/src/NameBundle
. Новая линия появляется в AppKernel и на routing.yml
появляется мой новый пакет, но когда я пытаюсь запустить серверСоздание пакета снаружи src/
Bundle generation
Generating the bundle code: OK
Checking that the bundle is autoloaded: FAILED
Confirm automatic update of your Kernel [yes]?
Enabling the bundle inside the Kernel: OK
Confirm automatic update of the Routing [yes]?
Importing the bundle routing resource: OK
The command was not able to configure everything automatically.
You must do the following changes manually.
- Edit the composer.json file and register the bundle
namespace in the "autoload" section:
У меня есть редактировать автозагрузку и пробовал много вещей (ищет здесь), но появляется та же ошибка всегда.
C:\Users\Akenateb\Documents\UOC\AULAMENTOR\Symfony>php app/console server:run 127.0.0.1:8080
PHP Fatal error: Class 'AulaMentor\ExdosBundle\AulaMentorExdosBundle' not found in C:\Users\Akenateb\Documents\UOC\AULAMENTOR\Symfony\app\AppKernel.php on line 20
Может кто-нибудь мне помочь? Я действительно застрял в этом. Спасибо заранее.
Почему бы он спросить что-то подобное? –
Кажется, что вы используете команду app/console generate: bundle command? – Cerad
i.am.michiel - потому что я занимаюсь фитнесом –