Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make it possible to dump inlined services to XML
- Loading branch information
Showing
10 changed files
with
127 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container21.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Definition; | ||
|
||
$container = new ContainerBuilder(); | ||
|
||
$bar = new Definition('Bar'); | ||
$bar->setConfigurator(array(new Definition('Baz'), 'configureBar')); | ||
|
||
$fooFactory = new Definition('FooFactory'); | ||
$fooFactory->setFactory(array(new Definition('Foobar'), 'createFooFactory')); | ||
|
||
$container | ||
->register('foo', 'Foo') | ||
->setFactory(array($fooFactory, 'createFoo')) | ||
->setConfigurator(array($bar, 'configureFoo')) | ||
; | ||
|
||
return $container; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services21.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
<services> | ||
<service id="foo" class="Foo"> | ||
<factory method="createFoo"> | ||
<service class="FooFactory"> | ||
<factory method="createFooFactory"> | ||
<service class="Foobar"/> | ||
</factory> | ||
</service> | ||
</factory> | ||
<configurator method="configureFoo"> | ||
<service class="Bar"> | ||
<configurator method="configureBar"> | ||
<service class="Baz"/> | ||
</configurator> | ||
</service> | ||
</configurator> | ||
</service> | ||
</services> | ||
</container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters