mirror of
https://github.com/werkraum-media/abtest.git
synced 2024-12-22 18:26:10 +01:00
24 lines
612 B
PHP
24 lines
612 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace DanielSiepmann\Configuration;
|
||
|
|
||
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||
|
use WerkraumMedia\ABTest\Switcher;
|
||
|
use WerkraumMedia\ABTest\TCA\VariantFilter;
|
||
|
|
||
|
return static function (ContainerConfigurator $containerConfigurator) {
|
||
|
$services = $containerConfigurator
|
||
|
->services()
|
||
|
->defaults()
|
||
|
->autowire()
|
||
|
->autoconfigure()
|
||
|
;
|
||
|
|
||
|
$services->load('WerkraumMedia\\ABTest\\', '../Classes/');
|
||
|
|
||
|
$services->set(Switcher::class)->public();
|
||
|
$services->set(VariantFilter::class)->public();
|
||
|
};
|