| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public static function do($container, $lazyLoad = true) |
||
|
|
|||
| 19 | { |
||
| 20 | include_once \dirname(__DIR__, 4).'/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerInterface.php'; |
||
| 21 | include_once \dirname(__DIR__, 4).'/vendor/symfony/twig-bundle/CacheWarmer/TemplateCacheWarmer.php'; |
||
| 22 | include_once \dirname(__DIR__, 4).'/vendor/symfony/twig-bundle/TemplateIterator.php'; |
||
| 23 | |||
| 24 | return $container->privates['twig.template_cache_warmer'] = new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer((new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService, [ |
||
| 25 | 'twig' => ['services', '.container.private.twig', 'get_Container_Private_TwigService', true], |
||
| 26 | ], [ |
||
| 27 | 'twig' => '?', |
||
| 28 | ]))->withContext('twig.template_cache_warmer', $container), new \Symfony\Bundle\TwigBundle\TemplateIterator(($container->services['kernel'] ?? $container->get('kernel', 1)), ['tests/app/src/Resources/views' => '__main__'], (\dirname(__DIR__, 4).'/templates'))); |
||
| 29 | } |
||
| 31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.