| @@ 92-100 (lines=9) @@ | ||
| 89 | * @param array $services |
|
| 90 | * @return void |
|
| 91 | */ |
|
| 92 | private function applyAliases(Injector $injector, array $services) |
|
| 93 | { |
|
| 94 | foreach ($services as $name => $object) { |
|
| 95 | $injector->alias($name, $object); |
|
| 96 | if ($this->isShared($name)) { |
|
| 97 | $injector->share($name); |
|
| 98 | } |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * @param array $services |
|
| @@ 106-114 (lines=9) @@ | ||
| 103 | * @param array $services |
|
| 104 | * @return void |
|
| 105 | */ |
|
| 106 | private function applyDelegates(Injector $injector, array $services) |
|
| 107 | { |
|
| 108 | foreach ($services as $name => $object) { |
|
| 109 | $injector->delegate($name, $object); |
|
| 110 | if ($this->isShared($name)) { |
|
| 111 | $injector->share($name); |
|
| 112 | } |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * @param array $delegators |
|