Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3.1854 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 3 | public function boot(Application $app) |
|
37 | { |
||
38 | 3 | if (!isset($app['twig'])) { |
|
39 | 3 | return; |
|
40 | } |
||
41 | |||
42 | $cache = new CachedMinifier($app['jshrink.cache_dir']); |
||
43 | $extension = new JshrinkExtension($cache, [ |
||
44 | 'flaggedComments' => $app['jshrink.flagged_comments'], |
||
45 | ], $app['jshrink.enabled']); |
||
46 | |||
47 | $app['twig']->addExtension($extension); |
||
48 | } |
||
49 | } |
||
50 |