<?php
/**
* @author Leo BANNHOLTZER (contact@scaledev.fr)
* @copyright 2021 - ScaleDEV SAS, 12 RUE CHARLES MORET, 10120 ST ANDRE LES VERGERS
* @license commercial
*/
declare(strict_types=1);
namespace Bluue\ProductsBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Bluue\ProductsBundle\DependencyInjection\ProductsExtension;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Bluue\ProductsBundle\DependencyInjection\Compiler\ProductsConfigurationPass;
class ProductsBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new ProductsConfigurationPass(), PassConfig::TYPE_BEFORE_REMOVING);
}
public function getContainerExtension(): ?ExtensionInterface
{
return new ProductsExtension();
}
/**
* @return string
*/
public function getPublicName(): string
{
return 'Module Catalogue Produit';
}
}