Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
40 | 3 | protected function parseCacheForControllerDefinition() |
|
41 | { |
||
42 | 3 | $action = $this->getCommand()->getAction(); |
|
43 | 3 | $class = ResolverCache::resolveFromAction($action); |
|
44 | 3 | if ($class) { |
|
45 | 1 | $instance = ClassResolver::newController($class); |
|
46 | |||
47 | 1 | if ($instance) { |
|
|
|||
48 | 1 | $this->getCommand()->setActionParam('instance', $instance); |
|
49 | 1 | return; |
|
50 | } |
||
54 |