You are here

container13.php in Zircon Profile 8.0

File

vendor/symfony/dependency-injection/Tests/Fixtures/containers/container13.php
View source
<?php

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
$container = new ContainerBuilder();
$container
  ->register('foo', 'FooClass')
  ->addArgument(new Reference('bar'));
$container
  ->register('bar', 'BarClass');
$container
  ->compile();
return $container;