Я изучаю Symfony 2. Я бы хотел иметь пример с SonataAdminBundle. Я нашел:Установить SonataNewsBundle
http://sonata-project.org/bundles/news/2-0/doc/reference/installation.html
, но это не первый пункт. я нашел:
[SonataAdminBundle]
git=http://github.com/sonata-project/SonataAdminBundle.git
target=/bundles/Sonata/AdminBundle
[SonataBlockBundle]
git=http://github.com/sonata-project/SonataBlockBundle.git
target=/bundles/Sonata/BlockBundle
[SonataCacheBundle]
git=http://github.com/sonata-project/SonataCacheBundle.git
target=/bundles/Sonata/CacheBundle
[SonatajQueryBundle]
git=http://github.com/sonata-project/SonatajQueryBundle.git
target=/bundles/Sonata/jQueryBundle
[SonataDoctrineORMAdminBundle]
git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
target=/bundles/Sonata/DoctrineORMAdminBundle
[KnpMenuBundle]
git=http://github.com/KnpLabs/KnpMenuBundle.git
target=/bundles/Knp/Bundle/MenuBundle
[KnpMenu]
git=http://github.com/KnpLabs/KnpMenu.git
target=/knp/menu
[Exporter]
git=http://github.com/sonata-project/exporter.git
target=/exporter
[SonataNewsBundle]
git=http://github.com/sonata-project/SonataNewsBundle.git
target=/bundles/Sonata/NewsBundle
и запустить бен/установка поставщиков.. Установите правильно. Id добавил строку AppKernel и автозагрузку, и если я бегу:
php app/console sonata:easy-extends:generate SonataNewsBundle
У меня есть ошибка:
[InvalidArgumentException]
Bundle "ApplicationSonataNewsBundle" does not exist or it is not enabled.
Так я добавил:
new Application\Sonata\NewsBundle\ApplicationSonataNewsBundle(),
и запустить
php app/console sonata:easy-extends:generate SonataNewsBundle
, то у меня есть ошибка:
PHP Fatal error: Class 'Application\Sonata\NewsBundle\ApplicationSonataNewsBundle' not found in /home/lanox06/Projects/sym2/app/AppKernel.php on line 29
Как я могу это сделать? Я бы хотел проверить это приложение.