first commit
This commit is contained in:
28
bundles/External/PompoBundle/PompoBundle.php
vendored
Normal file
28
bundles/External/PompoBundle/PompoBundle.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user