<commit_before><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 *
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\OrderBundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use WellCommerce\Bundle\CoreBundle\HttpKernel\AbstractWellCommerceBundle;
use WellCommerce\Bundle\OrderBundle\DependencyInjection\Compiler;

/**
 * Class WellCommerceOrderBundle
 *
 * @author  <NAME> <<EMAIL>>
 */
final class WellCommerceOrderBundle extends AbstractWellCommerceBundle
{
    public function build(ContainerBuilder $container)
    {
        parent::build($container);
        $container->addCompilerPass(new Compiler\RegisterOrderVisitorPass());
        $container->addCompilerPass(new Compiler\RegisterOrderModifierPass());
        $container->addCompilerPass(new Compiler\RegisterPaymentProcessorPass());
        $container->addCompilerPass(new Compiler\RegisterShippingMethodCalculatorPass());
        $container->addCompilerPass(new Compiler\RegisterShippingMethodOptionsProviderPass());
    }
}
<commit_msg>New bundle registration system<commit_after><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 *
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\OrderBundle;

use Doctrine\Common\Collections\Collection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use WellCommerce\Bundle\CoreBundle\HttpKernel\AbstractWellCommerceBundle;
use WellCommerce\Bundle\OrderBundle\DependencyInjection\Compiler;

/**
 * Class WellCommerceOrderBundle
 *
 * @author  <NAME> <<EMAIL>>
 */
final class WellCommerceOrderBundle extends AbstractWellCommerceBundle
{
    public function build(ContainerBuilder $container)
    {
        parent::build($container);
        $container->addCompilerPass(new Compiler\RegisterOrderVisitorPass());
        $container->addCompilerPass(new Compiler\RegisterOrderModifierPass());
        $container->addCompilerPass(new Compiler\RegisterPaymentProcessorPass());
        $container->addCompilerPass(new Compiler\RegisterShippingMethodCalculatorPass());
        $container->addCompilerPass(new Compiler\RegisterShippingMethodOptionsProviderPass());
    }
    
    public static function registerBundles(Collection $bundles)
    {
        $bundles->add(new self());
    }
}

{'fraction_non_alphanumeric': 0.09835438193647149, 'fraction_numerical': 0.0, 'mean_word_length': 5.023041474654378, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 26, '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': '7191182', 'n_tokens_mistral': 677, 'n_tokens_neox': 678, 'n_words': 148}