| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 6 | public function register(ViewInterface $view) |
|
| 24 | { |
||
| 25 | 6 | $view->getCallPipelineBuilder()->add(new HelpersPipelineStage()); |
|
|
|
|||
| 26 | 6 | HelpersCollection::getInstance()->setEngine($view); |
|
| 27 | |||
| 28 | 6 | $view->addMethod('getHelper', function ($name) { |
|
| 29 | 1 | return HelpersCollection::getInstance()->getHelper($name); |
|
| 30 | 6 | }); |
|
| 31 | |||
| 32 | 6 | $view->addMethod('hasHelper', function ($name) { |
|
| 33 | 1 | return HelpersCollection::getInstance()->hasHelper($name); |
|
| 34 | 6 | }); |
|
| 37 |