<commit_before><?php

/**
 * This file is part of the Berny\TagBundle package
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Berny\Bundle\TagBundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

use Berny\Bundle\TagBundle\DependencyInjection\Compiler\TagConsumerPass;
use Berny\Bundle\TagBundle\DependencyInjection\Compiler\TagInjectablePass;

class TagBundle extends Bundle
{
    public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $container
            ->addCompilerPass(new TagConsumerPass('tag.consumer'))
            ->addCompilerPass(new TagInjectablePass('tag.injectable'))
        ;
    }
}<commit_msg>fix bug with dependency-injection < 2.2.0<commit_after><?php

/**
 * This file is part of the Berny\TagBundle package
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Berny\Bundle\TagBundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

use Berny\Bundle\TagBundle\DependencyInjection\Compiler\TagConsumerPass;
use Berny\Bundle\TagBundle\DependencyInjection\Compiler\TagInjectablePass;

class TagBundle extends Bundle
{
    public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $container->addCompilerPass(new TagConsumerPass('tag.consumer'));
        $container->addCompilerPass(new TagInjectablePass('tag.injectable'));
    }
}
{'fraction_non_alphanumeric': 0.1016949152542373, 'fraction_numerical': 0.0017533606078316774, 'mean_word_length': 4.400630914826499, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3772116', 'n_tokens_mistral': 473, 'n_tokens_neox': 469, 'n_words': 113}