19 lines
379 B
PHP
Executable File
19 lines
379 B
PHP
Executable File
<?php
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Reference;
|
|
|
|
$container = new ContainerBuilder();
|
|
$container->
|
|
register('foo', 'FooClass')->
|
|
addArgument(new Reference('bar'))
|
|
->setPublic(true)
|
|
;
|
|
$container->
|
|
register('bar', 'BarClass')
|
|
->setPublic(true)
|
|
;
|
|
$container->compile();
|
|
|
|
return $container;
|