mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
- Autoloader for portal files in the itop-portal-base module - Dependencies moved to root composer.json - Add autoloader for /core and /application content
22 lines
548 B
PHP
22 lines
548 B
PHP
<?php
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Definition;
|
|
|
|
$container = new ContainerBuilder();
|
|
|
|
$bar = new Definition('Bar');
|
|
$bar->setConfigurator([new Definition('Baz'), 'configureBar']);
|
|
|
|
$fooFactory = new Definition('FooFactory');
|
|
$fooFactory->setFactory([new Definition('Foobar'), 'createFooFactory']);
|
|
|
|
$container
|
|
->register('foo', 'Foo')
|
|
->setFactory([$fooFactory, 'createFoo'])
|
|
->setConfigurator([$bar, 'configureFoo'])
|
|
->setPublic(true)
|
|
;
|
|
|
|
return $container;
|