@@ 636-648 (lines=13) @@ | ||
633 | * |
|
634 | * @return object the service-activator instance |
|
635 | */ |
|
636 | public function createServiceActivator($config, $defaultClass = false) |
|
637 | { |
|
638 | $method = (string) $config['method']; |
|
639 | $service = $this->getService((string) $config['ref']); |
|
640 | if ($method && $service) { |
|
641 | $args = $this->getReplyHandlerArguments($config); |
|
642 | array_unshift($args, [ |
|
643 | $service, |
|
644 | $method, |
|
645 | ]); |
|
646 | $defaultClass = $defaultClass ? $defaultClass : 'ServiceActivator'; |
|
647 | ||
648 | return $this->buildAndModify($config, $args, $defaultClass); |
|
649 | } |
|
650 | } |
|
651 |
@@ 212-224 (lines=13) @@ | ||
209 | * |
|
210 | * @return object the service-activator instance |
|
211 | */ |
|
212 | public function createServiceActivator($config, $defaultClass = false) |
|
213 | { |
|
214 | $method = (string) $config['method']; |
|
215 | $service = $this->context->getServiceProvider()->provideService((string) $config['ref']); |
|
216 | if ($method && $service) { |
|
217 | $args = $this->getReplyHandlerArguments($config); |
|
218 | array_unshift($args, [ |
|
219 | $service, |
|
220 | $method, |
|
221 | ]); |
|
222 | $defaultClass = $defaultClass ? $defaultClass : '\PEIP\Service\ServiceActivator'; |
|
223 | ||
224 | return $this->buildAndModify($config, $args, $defaultClass); |
|
225 | } |
|
226 | } |
|
227 |