src/Graviton/ProxyBundle/DependencyInjection/Compiler/ApiDefinitionLoaderPass.php 1 location
|
@@ 40-50 (lines=11) @@
|
| 37 |
|
$definition = $container->findDefinition('graviton.proxy.service.loaderfactory'); |
| 38 |
|
$taggedServices = $container->findTaggedServiceIds('graviton.proxy.definition.loader'); |
| 39 |
|
|
| 40 |
|
foreach ($taggedServices as $id => $tags) { |
| 41 |
|
foreach ($tags as $attributes) { |
| 42 |
|
$definition->addMethodCall( |
| 43 |
|
'addLoaderDefinition', |
| 44 |
|
array( |
| 45 |
|
new Reference($id), |
| 46 |
|
$attributes["alias"] |
| 47 |
|
) |
| 48 |
|
); |
| 49 |
|
} |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|
src/Graviton/ProxyBundle/DependencyInjection/Compiler/TransformerPass.php 1 location
|
@@ 75-86 (lines=12) @@
|
| 72 |
|
{ |
| 73 |
|
$taggedServices = $container->findTaggedServiceIds($tag); |
| 74 |
|
|
| 75 |
|
foreach ($taggedServices as $id => $tags) { |
| 76 |
|
foreach ($tags as $attributes) { |
| 77 |
|
$definition->addMethodCall( |
| 78 |
|
$callable, |
| 79 |
|
array( |
| 80 |
|
$attributes["alias"], |
| 81 |
|
$attributes["endpoint"], |
| 82 |
|
new Reference($id) |
| 83 |
|
) |
| 84 |
|
); |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
} |
| 88 |
|
} |
| 89 |
|
|