<commit_before><?php

namespace Neutron\AdminBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;

/**
 * This is the class that loads and manages your bundle configuration
 *
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
 */
class NeutronAdminExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);
        
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        
        foreach (array('services', 'acl', 'settings', 'orm') as $basename) {
            $loader->load(sprintf('%s.xml', $basename));
        }

        $container->setParameter('neutron_admin.languages.backend', $config['languages']['backend']);
        $container->setParameter('neutron_admin.languages.frontend', $config['languages']['frontend']);
        $container->setParameter('neutron_admin.acl_options', $config['acl']);

            
        $container->getDefinition('neutron_admin.event_subscriber.locale_subscriber')
            ->setPublic(true)
            ->addTag('kernel.event_subscriber');
        
        
        
       

        $this->loadSettings($config['settings'], $container, $loader);
        
    }<commit_msg>added use_acl param<commit_after><?php

namespace Neutron\AdminBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;

/**
 * This is the class that loads and manages your bundle configuration
 *
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
 */
class NeutronAdminExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);
        
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        
        foreach (array('services', 'acl', 'settings', 'orm') as $basename) {
            $loader->load(sprintf('%s.xml', $basename));
        }

        $container->setParameter('neutron_admin.languages.backend', $config['languages']['backend']);
        $container->setParameter('neutron_admin.languages.frontend', $config['languages']['frontend']);
        $container->setParameter('neutron_admin.acl_options', $config['acl']);
        $container->setParameter('use_acl', $config['acl']['use_acl']);

            
        $container->getDefinition('neutron_admin.event_subscriber.locale_subscriber')
            ->setPublic(true)
            ->addTag('kernel.event_subscriber');
        
        $this->loadSettings($config['settings'], $container, $loader);
        
    }
{'fraction_non_alphanumeric': 0.1376661742983752, 'fraction_numerical': 0.0, 'mean_word_length': 3.632010943912449, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5517079', 'n_tokens_mistral': 913, 'n_tokens_neox': 902, 'n_words': 150}