(No hay extensión capaz de cargar la configuration de "sonata_block"

Estoy encontrando este error al generar el panel de administración en Symfony 2.5. ¿Puede uno decirme qué es esto? como soy nuevo en Symfony e incapaz de getlo. Error al usar GIT, cuando se borra el caching, aplicación / memory caching de la console: borrar o cualquier otra cosa, el mismo error está en el browser.

[Symfony\Component\Config\Exception\FileLoaderLoadException] Cannot import resource "D:\xampp\htdocs\myassignment\app/config\config.yml" from "D:\xampp\htdocs\myassignment\app/config/config_dev.yml". (There is n o extension able to load the configuration for "sonata_block" (in D:\xampp\ htdocs\myassignment\app/config\config.yml). Looked for namespace "sonata_bl ock", found "framework", "security", "twig", "monolog", "swiftmailer", "ass etic", "doctrine", "sensio_framework_extra", "member", "sonata_admin", "son ata_doctrine_orm_admin", "acme_demo", "web_profiler", "sensio_distribution" ) [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] There is no extension able to load the configuration for "sonata_block" (in D:\xampp\htdocs\myassignment\app/config\config.yml). Looked for namespace "sonata_block", found "framework", "security", "twig", "monolog", "swiftmai ler", "assetic", "doctrine", "sensio_framework_extra", "member", "sonata_ad min", "sonata_doctrine_orm_admin", "acme_demo", "web_profiler", "sensio_dis tribution" 

Aquí está mi código

 imports: - { resource: parameters.yml } - { resource: security.yml } - { resource: @memberBundle/Resources/config/admin.yml } framework: #esi: ~ #translator: { fallback: "%locale%" } secret: "%secret%" router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: ~ form: ~ csrf_protection: ~ validation: { enable_annotations: true } templating: engines: ['twig'] #assets_version: SomeVersionScheme default_locale: "%locale%" trusted_hosts: ~ trusted_proxies: ~ session: # handler_id set to null will use default session handler from php.ini handler_id: ~ fragments: ~ http_method_override: true # Twig Configuration twig: debug: "%kernel.debug%" strict_variables: "%kernel.debug%" # Assetic Configuration assetic: debug: "%kernel.debug%" use_controller: false bundles: [ ] #java: /usr/bin/java filters: cssrewrite: ~ #closure: # jar: "%kernel.root_dir%/Resources/java/compiler.jar" #yui_css: # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar" # Doctrine Configuration doctrine: dbal: driver: "%database_driver%" host: "%database_host%" port: "%database_port%" dbname: "%database_name%" user: "%database_user%" password: "%database_password%" charset: UTF8 # if using pdo_sqlite as your database driver, add the path in parameters.yml # eg database_path: "%kernel.root_dir%/data/data.db3" # path: "%database_path%" orm: auto_generate_proxy_classes: "%kernel.debug%" auto_mapping: true # Swiftmailer Configuration swiftmailer: transport: "%mailer_transport%" host: "%mailer_host%" username: "%mailer_user%" password: "%mailer_password%" spool: { type: memory } sonata_block: default_contexts: [cms] blocks: # Enable the SonataAdminBundle block sonata.admin.block.admin_list: contexts: [admin] # Your other blocks 

aquí está mi kernel

Debería registrar SonataBlockBundle en AppKernel.php

La documentation oficial indica la list de packages para inicializar en AppKernel.php

  // The admin requires some twig functions defined in the security // bundle, like is_granted. Register this bundle if it wasn't the case // already. new Symfony\Bundle\SecurityBundle\SecurityBundle(), // These are the other bundles the SonataAdminBundle relies on new Sonata\CoreBundle\SonataCoreBundle(), new Sonata\BlockBundle\SonataBlockBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), // And finally, the storage and SonataAdminBundle new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(), new Sonata\AdminBundle\SonataAdminBundle(), 

Así que olvidaste inicializar SonataBlockBundle. No olvide instalar e inicializar el ORM / ODM correcto para su tipo de controller.

Más información aquí: https://sonata-project.org/bundles/admin/3-x/doc/getting_started/installation.html