PHP Classes

File: vendor/symfony/dependency-injection/Tests/Fixtures/containers/container10.php

Recommend this page to a friend!
  Classes of Gavin Gordon Markowski  >  Helphp PHP Class Generator  >  vendor/symfony/dependency-injection/Tests/Fixtures/containers/container10.php  >  Download  
File: vendor/symfony/dependency-injection/Tests/Fixtures/containers/container10.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Helphp PHP Class Generator
Generate classes from configuration parameters
Author: By
Last change:
Date: 4 months ago
Size: 315 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__.'/../includes/classes.php';

use
Symfony\Component\DependencyInjection\ContainerBuilder;
use
Symfony\Component\DependencyInjection\Reference;

$container = new ContainerBuilder();
$container->
   
register('foo', 'FooClass')->
   
addArgument(new Reference('bar'))
;

return
$container;

For more information send a message to info at phpclasses dot org.