diff --git a/DependencyInjection/CmfMenuExtension.php b/DependencyInjection/CmfMenuExtension.php index 8f04d43b..2b4c2c3f 100644 --- a/DependencyInjection/CmfMenuExtension.php +++ b/DependencyInjection/CmfMenuExtension.php @@ -70,6 +70,8 @@ public function loadPhpcr($config, XmlFileLoader $loader, ContainerBuilder $cont $keys = array( 'menu_document_class' => 'menu_document.class', 'node_document_class' => 'node_document.class', + 'menu_admin_class' => 'menu_admin.class', + 'node_admin_class' => 'node_admin.class', 'menu_basepath' => 'menu_basepath', 'content_basepath' => 'content_basepath', 'manager_name' => 'manager_name', diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 02f3763b..5f2d2b9c 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -34,15 +34,15 @@ public function getConfigTreeBuilder() ->scalarNode('menu_basepath')->defaultValue('/cms/menu')->end() ->scalarNode('content_basepath')->defaultValue('/cms/content')->end() ->scalarNode('manager_name')->defaultNull()->end() - ->scalarNode('menu_document_class')->defaultNull()->end() - ->scalarNode('node_document_class')->defaultNull()->end() + ->scalarNode('menu_document_class')->defaultValue('Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu')->end() + ->scalarNode('node_document_class')->defaultValue('Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode')->end() ->enumNode('use_sonata_admin') ->values(array(true, false, 'auto')) ->defaultValue('auto') ->end() - ->scalarNode('menu_admin_class')->defaultNull()->end() - ->scalarNode('node_admin_class')->defaultNull()->end() + ->scalarNode('menu_admin_class')->defaultValue('Symfony\Cmf\Bundle\MenuBundle\Admin\MenuAdmin')->end() + ->scalarNode('node_admin_class')->defaultValue('Symfony\Cmf\Bundle\MenuBundle\Admin\MenuNodeAdmin')->end() ->scalarNode('content_basepath')->defaultNull()->end() ->scalarNode('admin_recursive_breadcrumbs')->defaultTrue()->end() ->end() diff --git a/Resources/config/admin.xml b/Resources/config/admin.xml index 55dd2ad2..05ec5e53 100644 --- a/Resources/config/admin.xml +++ b/Resources/config/admin.xml @@ -5,10 +5,6 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu - Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode - Symfony\Cmf\Bundle\MenuBundle\Admin\MenuAdmin - Symfony\Cmf\Bundle\MenuBundle\Admin\MenuNodeAdmin Symfony\Cmf\Bundle\MenuBundle\Admin\Extension\MenuNodeReferrersExtension