mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
28 lines
944 B
PHP
28 lines
944 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\ThirdPartyBundle;
|
|
|
|
use Chill\ThirdPartyBundle\DependencyInjection\CompilerPass\ThirdPartyTypeCompilerPass;
|
|
use Chill\ThirdPartyBundle\ThirdPartyType\ThirdPartyTypeProviderInterface;
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
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(), \Symfony\Component\DependencyInjection\Compiler\PassConfig::TYPE_BEFORE_OPTIMIZATION, 0);
|
|
}
|
|
}
|