29 lines
948 B
PHP
29 lines
948 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace External\PompoBundle;
|
|
|
|
use External\PompoBundle\DataGo\Synchronizer\SynchronizerInterface;
|
|
use External\PompoBundle\DependencyInjection\Compiler\UnregisterUnwantedServicesPass;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
class PompoBundle extends Bundle
|
|
{
|
|
public function build(ContainerBuilder $container)
|
|
{
|
|
$container->registerForAutoconfiguration(SynchronizerInterface::class)
|
|
->addTag('pompo.datago.synchronizer')
|
|
->setAutowired(true)
|
|
->setPublic(false);
|
|
|
|
$container->registerForAutoconfiguration(\External\PompoBundle\DRS\Synchronizer\SynchronizerInterface::class)
|
|
->addTag('pompo.drs.synchronizer')
|
|
->setAutowired(true)
|
|
->setPublic(false);
|
|
|
|
$container->addCompilerPass(new UnregisterUnwantedServicesPass(), priority: 99);
|
|
}
|
|
}
|