@@ 396-407 (lines=12) @@ | ||
393 | } |
|
394 | } |
|
395 | // call instance methods |
|
396 | if($config->action){ |
|
397 | foreach($config->action as $action){ |
|
398 | $method = (string)$action['method'] != '' ? (string)$action['method'] : NULL; |
|
399 | if($method && self::hasPublicProperty($service, 'Method', $method)){ |
|
400 | $args = array(); |
|
401 | foreach($action->children() as $argument){ |
|
402 | $args[] = $this->buildArg($argument); |
|
403 | } |
|
404 | call_user_func_array(array($service, (string)$action['method']), $args); |
|
405 | } |
|
406 | } |
|
407 | } |
|
408 | // register instance listeners |
|
409 | if($service instanceof \PEIP\INF\Event\Connectable){ |
|
410 | if($config->listener){ |
@@ 185-196 (lines=12) @@ | ||
182 | } |
|
183 | } |
|
184 | // call instance methods |
|
185 | if(isset($config->action)){ |
|
186 | foreach($config->action as $action){ |
|
187 | $method = (string)$action['method'] != '' ? (string)$action['method'] : NULL; |
|
188 | if($method && self::hasPublicProperty($service, 'Method', $method)){ |
|
189 | $args = array(); |
|
190 | foreach($action->children() as $argument){ |
|
191 | $args[] = $this->buildArg($argument); |
|
192 | } |
|
193 | call_user_func_array(array($service, (string)$action['method']), $args); |
|
194 | } |
|
195 | } |
|
196 | } |
|
197 | // register instance listeners |
|
198 | if($service instanceof \PEIP\INF\Event\Connectable){ |
|
199 | if(isset($config->listener)){ |