private function loadDocumentTree($config, ContainerBuilder $container)
    {
        $configuration = [
            'routing_defaults' => $config['routing_defaults'],
            'repository_name' => $config['repository_name'],
            'sortable_by' => $config['sortable_by'],
            'move' => true,
            'reorder' => true,
        ];

        $container->setParameter('sonata_admin_doctrine_phpcr.tree_block.configuration', $configuration);

        foreach ($configuration as $key => $value) {
            $container->setParameter('sonata_admin_doctrine_phpcr.tree_block.'.$key, $value);
        }
    }
private function loadDocumentTree($config, ContainerBuilder $container)
    {
        $configuration = [
            'routing_defaults' => $config['routing_defaults'],
            'repository_name' => $config['repository_name'],
            'sortable_by' => $config['sortable_by'],
            'move' => true,
            'reorder' => true,
        ];

        $container->setParameter('sonata_admin_doctrine_phpcr.tree_block.configuration', $configuration);

        foreach ($configuration as $key => $value) {
            $container->setParameter('sonata_admin_doctrine_phpcr.tree_block.'.$key, $value);
        }
    }
private function loadDocumentTree ( $ config , ContainerBuilder $ container ) { $ configuration = [ 'routing_defaults' => $ config [ 'routing_defaults' ] , 'repository_name' => $ config [ 'repository_name' ] , 'sortable_by' => $ config [ 'sortable_by' ] , 'move' => true , 'reorder' => true , ] ; $ container -> setParameter ( 'sonata_admin_doctrine_phpcr.tree_block.configuration' , $ configuration ) ; foreach ( $ configuration as $ key => $ value ) { $ container -> setParameter ( 'sonata_admin_doctrine_phpcr.tree_block.' . $ key , $ value ) ; } }
Set the document tree parameters and configuration.

@param array            $config
@param ContainerBuilder $container
Set the document tree parameters and configuration .