| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function apply(Injector $injector) |
||
| 21 | { |
||
| 22 | 1 | $injector->prepare(FormattedResponder::class, function (FormattedResponder $responder) { |
|
| 23 | 1 | return $responder->withValue(TwigFormatter::class, 1.0); |
|
| 24 | 1 | }); |
|
| 25 | |||
| 26 | 1 | $injector->define(Twig_Loader_Filesystem::class, [ |
|
| 27 | 1 | ':paths' => $this->env->getValue('TWIG_TEMPLATES') |
|
| 28 | ]); |
||
| 29 | |||
| 30 | 1 | $injector->define(Twig_Environment::class, [ |
|
| 31 | 1 | 'loader' => Twig_Loader_Filesystem::class, |
|
| 32 | 1 | ':options' => $this->getOptions() |
|
| 33 | ]); |
||
| 34 | 1 | } |
|
| 35 | |||
| 53 |