|
@@ 38-40 (lines=3) @@
|
| 35 |
|
$service = $declaration; |
| 36 |
|
$method = null; |
| 37 |
|
|
| 38 |
|
if (strpos($declaration, ':') !== false) { |
| 39 |
|
list($service, $method) = explode(':', $declaration); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
return [ |
| 43 |
|
'service' => $service, |
|
@@ 59-61 (lines=3) @@
|
| 56 |
|
throw new \InvalidArgumentException('The second argument for a resource configuration, when expressed with a numerically indexed array, should be an array of arguments.'); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
if (false !== strpos($declaration[0], ':')) { |
| 60 |
|
list($service, $method) = explode(':', $declaration[0]); |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
return [ |
| 64 |
|
'service' => $service, |