Test Failed
Push — main ( 109ef1...0eb966 )
by Michael
02:49
created

getTwig_TemplateCacheWarmerService::do()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 8
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 11
rs 10
1
<?php
2
3
namespace Container6msxD4P;
4
5
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
6
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
7
8
/**
9
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
10
 */
11
class getTwig_TemplateCacheWarmerService extends Braunstetter_MenuBundle_Test_app_src_TestKernelDevDebugContainer
12
{
13
    /**
14
     * Gets the private 'twig.template_cache_warmer' shared service.
15
     *
16
     * @return \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer
17
     */
18
    public static function do($container, $lazyLoad = true)
0 ignored issues
show
Unused Code introduced by
The parameter $lazyLoad is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

18
    public static function do($container, /** @scrutinizer ignore-unused */ $lazyLoad = true)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
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
    }
30
}
31