tikiwiki/packages/tiki-pkg-tikimanager/symfony/dependency-injection/Tests/Fixtures/config/anonymous.php

22 lines
610 B
PHP
Raw Normal View History

2023-11-20 21:52:04 +01:00
<?php
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use Bar\FooClass;
use stdClass;
use Symfony\Component\DependencyInjection\Tests\Fixtures\StdClassDecorator;
return function (ContainerConfigurator $c) {
$s = $c->services()->defaults()->public();
$s->set('decorated', stdClass::class);
$s->set(null, StdClassDecorator::class)
->decorate('decorated', 'decorator42')
->args([ref('decorator42')]);
$s->set('listener_aggregator', FooClass::class)->public()->args([tagged_iterator('listener')]);
$s->set(null, stdClass::class)->tag('listener');
};