mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
20 lines
650 B
PHP
20 lines
650 B
PHP
<?php
|
|
|
|
namespace Chill\ThirdPartyBundle;
|
|
|
|
use Chill\ThirdPartyBundle\ThirdPartyType\ThirdPartyTypeProviderInterface;
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
use Chill\ThirdPartyBundle\DependencyInjection\CompilerPass\ThirdPartyTypeCompilerPass;
|
|
|
|
class ChillThirdPartyBundle extends Bundle
|
|
{
|
|
public function build(\Symfony\Component\DependencyInjection\ContainerBuilder $container)
|
|
{
|
|
parent::build($container);
|
|
$container->registerForAutoconfiguration(ThirdPartyTypeProviderInterface::class)
|
|
->addTag('chill_3party.provider');
|
|
$container->addCompilerPass(new ThirdPartyTypeCompilerPass());
|
|
}
|
|
|
|
}
|