14 lines
215 B
PHP
14 lines
215 B
PHP
|
<?php
|
||
|
|
||
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||
|
|
||
|
$container = new ContainerBuilder();
|
||
|
|
||
|
$container
|
||
|
->register('foo', 'Foo')
|
||
|
->setAutowired(true)
|
||
|
->setPublic(true)
|
||
|
;
|
||
|
|
||
|
return $container;
|