14 lines
324 B
PHP
14 lines
324 B
PHP
|
<?php
|
||
|
|
||
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||
|
use Symfony\Component\DependencyInjection\Definition;
|
||
|
|
||
|
$container = new ContainerBuilder();
|
||
|
$container->
|
||
|
register('foo', 'FooClass')->
|
||
|
addArgument(new Definition('BarClass', [new Definition('BazClass')]))
|
||
|
->setPublic(true)
|
||
|
;
|
||
|
|
||
|
return $container;
|