<?php
/*
* This file is part of CustomerGroup
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\CustomerGroup42\Bundle;
use Plugin\CustomerGroup42\DependencyInjection\Compiler\GatePass;
use Plugin\CustomerGroup42\Service\Gate\GateInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CustomerGroupBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->registerForAutoconfiguration(GateInterface::class)
->addTag(GatePass::TAG);
$container->addCompilerPass(new GatePass());
}
}