Conditions | 4 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function commands() |
||
26 | { |
||
27 | if($this->commands === null) { |
||
28 | $this->commands = []; |
||
29 | |||
30 | foreach($this->container->keys() as $serviceName) { |
||
31 | if(preg_match('/\.command$/', $serviceName)) { |
||
32 | $this->commands[] = $this->container[$serviceName]; |
||
33 | } |
||
34 | } |
||
35 | } |
||
36 | |||
37 | return $this->commands; |
||
38 | } |
||
39 | } |
||
40 |