| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 8 | public function install(Environment $twig): Environment |
|
| 33 | { |
||
| 34 | 8 | $twig = clone $twig; |
|
| 35 | |||
| 36 | 8 | $extension = new Extension($this->pipeline); |
|
| 37 | 8 | $twig->addExtension($extension); |
|
| 38 | |||
| 39 | 8 | $compiler = new PatchingCompiler($twig); |
|
| 40 | 8 | $twig->setCompiler($compiler); |
|
| 41 | |||
| 42 | 8 | return $twig; |
|
| 43 | } |
||
| 45 |