2021-02-01 14:14:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace WerkraumMedia\ThueCat;
|
|
|
|
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
2021-08-05 15:18:39 +02:00
|
|
|
use WerkraumMedia\ThueCat\Domain\Import\Entity\MapsToType;
|
|
|
|
use WerkraumMedia\ThueCat\Domain\Import\Typo3Converter\Converter;
|
2021-02-01 14:14:05 +01:00
|
|
|
use WerkraumMedia\ThueCat\Domain\Import\UrlProvider\UrlProvider;
|
|
|
|
|
|
|
|
return function (ContainerConfigurator $container, ContainerBuilder $containerBuilder) {
|
2021-02-03 15:05:35 +01:00
|
|
|
$containerBuilder->registerForAutoconfiguration(UrlProvider::class)->addTag(DependencyInjection\UrlProvidersPass::TAG);
|
|
|
|
$containerBuilder->addCompilerPass(new DependencyInjection\UrlProvidersPass());
|
2021-02-01 14:14:05 +01:00
|
|
|
|
2021-02-03 15:05:35 +01:00
|
|
|
$containerBuilder->registerForAutoconfiguration(Converter::class)->addTag(DependencyInjection\ConverterPass::TAG);
|
|
|
|
$containerBuilder->addCompilerPass(new DependencyInjection\ConverterPass());
|
2021-08-05 15:18:39 +02:00
|
|
|
|
|
|
|
$containerBuilder->registerForAutoconfiguration(MapsToType::class)->addTag(DependencyInjection\EntityPass::TAG);
|
|
|
|
$containerBuilder->addCompilerPass(new DependencyInjection\EntityPass());
|
2021-02-01 14:14:05 +01:00
|
|
|
};
|