DependencyInjection/Compiler/OverrideCompilerPass.php
public function process(ContainerBuilder $container)
    {
        //override admin pool class
        if ($container->hasParameter('bruery.admin.pool.base_admin.class')) {
            $definition = $container->getDefinition('sonata.admin.pool');
            $definition->setClass($container->getParameter('bruery.admin.pool.base_admin.class'));
            if ($container->hasParameter('bruery.admin.options.use_footable') && $container->hasParameter('bruery.admin.settings.footable')) {
                $definition->addMethodCall('setOption', array('use_footable', $container->getParameter('bruery.admin.options.use_footable')));
                $definition->addMethodCall('setOption', array('footable_settings', $container->getParameter('bruery.admin.settings.footable')));
            }
            $definition->addMethodCall('setOption', array('skin', $container->getParameter('bruery.admin.settings.skin')));
            $definition->addMethodCall('setOption', array('sidebar_collapse', $container->getParameter('bruery.admin.settings.sidebar_collapse')));
        }
    }
public function process(ContainerBuilder $container)
    {
        //override admin pool class
        if ($container->hasParameter('bruery.admin.pool.base_admin.class')) {
            $definition = $container->getDefinition('sonata.admin.pool');
            $definition->setClass($container->getParameter('bruery.admin.pool.base_admin.class'));
            if ($container->hasParameter('bruery.admin.options.use_footable') && $container->hasParameter('bruery.admin.settings.footable')) {
                $definition->addMethodCall('setOption', array('use_footable', $container->getParameter('bruery.admin.options.use_footable')));
                $definition->addMethodCall('setOption', array('footable_settings', $container->getParameter('bruery.admin.settings.footable')));
            }
            $definition->addMethodCall('setOption', array('skin', $container->getParameter('bruery.admin.settings.skin')));
            $definition->addMethodCall('setOption', array('sidebar_collapse', $container->getParameter('bruery.admin.settings.sidebar_collapse')));
        }
    }
{@inheritdoc}