| @@ 400-412 (lines=13) @@ | ||
| 397 | protected function modifyService($service, $config)  | 
                                |
| 398 |     { | 
                                |
| 399 | // set instance properties  | 
                                |
| 400 |         if ($config->property) { | 
                                |
| 401 |             foreach ($config->property as $property) { | 
                                |
| 402 | $arg = $this->buildArg($property);  | 
                                |
| 403 |                 if ($arg) { | 
                                |
| 404 | $setter = self::getSetter($property);  | 
                                |
| 405 |                     if ($setter && self::hasPublicProperty($service, 'Method', $setter)) { | 
                                |
| 406 |                         $service->{$setter}($arg); | 
                                |
| 407 |                     } elseif (in_array($property, self::hasPublicProperty($service, 'Property', $setter))) { | 
                                |
| 408 | $service->$setter = $arg;  | 
                                |
| 409 | }  | 
                                |
| 410 | }  | 
                                |
| 411 | }  | 
                                |
| 412 | }  | 
                                |
| 413 | // call instance methods  | 
                                |
| 414 |         if ($config->action) { | 
                                |
| 415 |             foreach ($config->action as $action) { | 
                                |
| @@ 182-194 (lines=13) @@ | ||
| 179 |     { | 
                                |
| 180 | $config = is_array($config) ? new \ArrayObject($config) : $config;  | 
                                |
| 181 | // set instance properties  | 
                                |
| 182 |         if (isset($config->property)) { | 
                                |
| 183 |             foreach ($config->property as $property) { | 
                                |
| 184 | $arg = self::buildArg($property);  | 
                                |
| 185 |                 if ($arg) { | 
                                |
| 186 | $setter = self::getSetter($property);  | 
                                |
| 187 |                     if ($setter && self::hasPublicProperty($service, 'Method', $setter)) { | 
                                |
| 188 |                         $service->{$setter}($arg); | 
                                |
| 189 |                     } elseif (in_array($property, self::hasPublicProperty($service, 'Property', $setter))) { | 
                                |
| 190 | $service->$setter = $arg;  | 
                                |
| 191 | }  | 
                                |
| 192 | }  | 
                                |
| 193 | }  | 
                                |
| 194 | }  | 
                                |
| 195 | // call instance methods  | 
                                |
| 196 |         if (isset($config->action)) { | 
                                |
| 197 |             foreach ($config->action as $action) { | 
                                |