28 lines
920 B
PHP
28 lines
920 B
PHP
<?php
|
|
|
|
namespace External\HannahBundle;
|
|
|
|
use External\HannahBundle\DependencyInjection\Compiler\UnregisterUnwantedServicesPass;
|
|
use External\HannahBundle\Maileon\Export\ExportInterface;
|
|
use External\HannahBundle\SAP\Synchronizer\SynchronizerInterface;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
|
|
class HannahBundle extends Bundle
|
|
{
|
|
public function build(ContainerBuilder $container)
|
|
{
|
|
$container->addCompilerPass(new UnregisterUnwantedServicesPass(), priority: 255);
|
|
|
|
$container->registerForAutoconfiguration(ExportInterface::class)
|
|
->addTag('maileon.export')
|
|
->setAutowired(true)
|
|
->setPublic(false);
|
|
|
|
$container->registerForAutoconfiguration(SynchronizerInterface::class)
|
|
->addTag('sap.synchronizer')
|
|
->setAutowired(true)
|
|
->setPublic(false);
|
|
}
|
|
}
|