| @@ 66-82 (lines=17) @@ | ||
| 63 | /** |
|
| 64 | * {@inheritdoc} |
|
| 65 | */ |
|
| 66 | public function getMethodsInjections($fqcn) |
|
| 67 | { |
|
| 68 | $config = $this->getConfig($fqcn); |
|
| 69 | ||
| 70 | if (!isset($config['methods'])) { |
|
| 71 | return []; |
|
| 72 | } |
|
| 73 | ||
| 74 | $injections = []; |
|
| 75 | foreach ($config['methods'] as $methodName => $spec) { |
|
| 76 | foreach ($spec as $injection) { |
|
| 77 | $injections[$methodName][] = $this->createInjectionObject($injection); |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| 81 | return $injections; |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * {@inheritdoc} |
|
| @@ 87-101 (lines=15) @@ | ||
| 84 | /** |
|
| 85 | * {@inheritdoc} |
|
| 86 | */ |
|
| 87 | public function getPropertiesInjections($fqcn) |
|
| 88 | { |
|
| 89 | $config = $this->getConfig($fqcn); |
|
| 90 | ||
| 91 | if (!isset($config['properties'])) { |
|
| 92 | return []; |
|
| 93 | } |
|
| 94 | ||
| 95 | $injections = []; |
|
| 96 | foreach ($config['properties'] as $propertyName => $injection) { |
|
| 97 | $injections[$propertyName] = $this->createInjectionObject($injection); |
|
| 98 | } |
|
| 99 | ||
| 100 | return $injections; |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * {@inheritdoc} |
|