I'm currently trying to install the sonata-admin bundle on an empty Symfony2.4 project. I downloaded the following bundles:
php composer.phar require sonata-project/admin-bundle
php composer.phar require sonata-project/doctrine-orm-admin-bundle
I register these bundles in my appkernel.php:
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Sonata\jQueryBundle\SonatajQueryBundle(),
new Knplabs\KnpMenuBundle\Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
I added these lines in my config.yml file as stated in the documentation:
sonata_block:
default_contexts: [cms]
blocks:
# Enable the SonataAdminBundle block
sonata.admin.block.admin_list:
contexts: [admin]
But each time I try to run :
php app/console assets:install web
or
php composer.phar update
I keep getting the same error:
class 'Sonata\CoreBundle\SonataCoreBundle" not found in AppKernel.php
In fact the class seems to be in a "Sonata-project\CoreBundle" fodler in my vendor folder, but it should'nt be a problem as I have the exact same thing on an older project where the Sonata Admin Bundle works fine.
Does anybody know what I'm doing wrong here ?