Files
kupshop/bundles/External/HannahBundle/HannahBundle.php
2025-08-02 16:30:27 +02:00

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);
}
}