You are here

container18.php in Service Container 7.2

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container18.php
View source
<?php

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Scope;
$container = new ContainerBuilder();
$container
  ->addScope(new Scope('request'));
$container
  ->register('foo', 'FooClass')
  ->setScope('request');
$container
  ->compile();
return $container;