<?php
/**
* @author Léo 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\StocksBundle;
use Bluue\StocksBundle\DependencyInjection\StocksExtension;
use Bluue\StocksBundle\DependencyInjection\Compiler\StocksConfigurationPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
class StocksBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new StocksConfigurationPass(), PassConfig::TYPE_BEFORE_REMOVING);
}
public function getContainerExtension(): ?ExtensionInterface
{
return new StocksExtension();
}
/**
* @return string
*/
public function getPublicName(): string
{
return 'Module Stock';
}
}