src/PostsBundle/DependencyInjection/Compiler/PostsMapPass.php 1 location
|
@@ 9-21 (lines=13) @@
|
6 |
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
7 |
|
use Symfony\Component\DependencyInjection\Reference; |
8 |
|
|
9 |
|
class PostsMapPass implements CompilerPassInterface |
10 |
|
{ |
11 |
|
public function process(ContainerBuilder $container) |
12 |
|
{ |
13 |
|
$definition = $container->getDefinition('sculpin_posts.posts_map'); |
14 |
|
|
15 |
|
foreach ($container->findTaggedServiceIds('sculpin_posts.posts_map') as $id => $tagAttributes) { |
16 |
|
foreach ($tagAttributes as $attributes) { |
17 |
|
$definition->addMethodCall('addMap', [new Reference($id)]); |
18 |
|
} |
19 |
|
} |
20 |
|
} |
21 |
|
} |
22 |
|
|
src/SculpinBundle/DependencyInjection/Compiler/ConverterManagerPass.php 1 location
|
@@ 18-35 (lines=18) @@
|
15 |
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
16 |
|
use Symfony\Component\DependencyInjection\Reference; |
17 |
|
|
18 |
|
final class ConverterManagerPass implements CompilerPassInterface |
19 |
|
{ |
20 |
|
/** |
21 |
|
* {@inheritdoc} |
22 |
|
*/ |
23 |
|
public function process(ContainerBuilder $container) |
24 |
|
{ |
25 |
|
$definition = $container->getDefinition('sculpin.converter_manager'); |
26 |
|
|
27 |
|
foreach ($container->findTaggedServiceIds('sculpin.converter') as $id => $tagAttributes) { |
28 |
|
foreach ($tagAttributes as $attributes) { |
29 |
|
$definition->addMethodCall('registerConverter', [ |
30 |
|
$attributes['alias'], new Reference($id), |
31 |
|
]); |
32 |
|
} |
33 |
|
} |
34 |
|
} |
35 |
|
} |
36 |
|
|
src/SculpinBundle/DependencyInjection/Compiler/DataProviderManagerPass.php 1 location
|
@@ 18-33 (lines=16) @@
|
15 |
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
16 |
|
use Symfony\Component\DependencyInjection\Reference; |
17 |
|
|
18 |
|
final class DataProviderManagerPass implements CompilerPassInterface |
19 |
|
{ |
20 |
|
/** |
21 |
|
* {@inheritdoc} |
22 |
|
*/ |
23 |
|
public function process(ContainerBuilder $container) |
24 |
|
{ |
25 |
|
$definition = $container->getDefinition('sculpin.data_provider_manager'); |
26 |
|
|
27 |
|
foreach ($container->findTaggedServiceIds('sculpin.data_provider') as $id => $tagAttributes) { |
28 |
|
foreach ($tagAttributes as $attributes) { |
29 |
|
$definition->addMethodCall('registerDataProvider', [$attributes['alias'], new Reference($id)]); |
30 |
|
} |
31 |
|
} |
32 |
|
} |
33 |
|
} |
34 |
|
|
src/SculpinBundle/DependencyInjection/Compiler/DataSourcePass.php 1 location
|
@@ 18-31 (lines=14) @@
|
15 |
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
16 |
|
use Symfony\Component\DependencyInjection\Reference; |
17 |
|
|
18 |
|
final class DataSourcePass implements CompilerPassInterface |
19 |
|
{ |
20 |
|
/** |
21 |
|
* {@inheritdoc} |
22 |
|
*/ |
23 |
|
public function process(ContainerBuilder $container) |
24 |
|
{ |
25 |
|
$definition = $container->getDefinition('sculpin.data_source'); |
26 |
|
|
27 |
|
foreach ($container->findTaggedServiceIds('sculpin.data_source') as $id => $tagAttributes) { |
28 |
|
$definition->addMethodCall('addDataSource', [new Reference($id)]); |
29 |
|
} |
30 |
|
} |
31 |
|
} |
32 |
|
|
src/SculpinBundle/DependencyInjection/Compiler/FormatterManagerPass.php 1 location
|
@@ 18-33 (lines=16) @@
|
15 |
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
16 |
|
use Symfony\Component\DependencyInjection\Reference; |
17 |
|
|
18 |
|
final class FormatterManagerPass implements CompilerPassInterface |
19 |
|
{ |
20 |
|
/** |
21 |
|
* {@inheritdoc} |
22 |
|
*/ |
23 |
|
public function process(ContainerBuilder $container) |
24 |
|
{ |
25 |
|
$definition = $container->getDefinition('sculpin.formatter_manager'); |
26 |
|
|
27 |
|
foreach ($container->findTaggedServiceIds('sculpin.formatter') as $id => $tagAttributes) { |
28 |
|
foreach ($tagAttributes as $attributes) { |
29 |
|
$definition->addMethodCall('registerFormatter', [$attributes['alias'], new Reference($id)]); |
30 |
|
} |
31 |
|
} |
32 |
|
} |
33 |
|
} |
34 |
|
|
src/SculpinBundle/DependencyInjection/Compiler/GeneratorManagerPass.php 1 location
|
@@ 18-33 (lines=16) @@
|
15 |
|
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
16 |
|
use Symfony\Component\DependencyInjection\Reference; |
17 |
|
|
18 |
|
final class GeneratorManagerPass implements CompilerPassInterface |
19 |
|
{ |
20 |
|
/** |
21 |
|
* {@inheritdoc} |
22 |
|
*/ |
23 |
|
public function process(ContainerBuilder $container) |
24 |
|
{ |
25 |
|
$definition = $container->getDefinition('sculpin.generator_manager'); |
26 |
|
|
27 |
|
foreach ($container->findTaggedServiceIds('sculpin.generator') as $id => $tagAttributes) { |
28 |
|
foreach ($tagAttributes as $attributes) { |
29 |
|
$definition->addMethodCall('registerGenerator', [$attributes['alias'], new Reference($id)]); |
30 |
|
} |
31 |
|
} |
32 |
|
} |
33 |
|
} |
34 |
|
|