Code Duplication    Length = 4-4 lines in 2 locations

tests/Component/AppKernel.php 1 location

@@ 257-260 (lines=4) @@
254
        $c->setAlias(EngineInterface::class, TwigEngine::class);
255
        $c->setAlias('templating', TwigEngine::class); // Read Symfony source code to understand!
256
257
        if (\in_array($this->getEnvironment(), ['test'], true)) {
258
            $c->autowire('test.client', Client::class)
259
                ->setPublic(true); // Public needed!
260
        }
261
262
        //Controllers
263
        $c->autowire(EngineAsArgumentController::class)

tests/Framework/src/AppKernel.php 1 location

@@ 71-74 (lines=4) @@
68
            ->setPublic(false);
69
        $c->setAlias(EngineInterface::class, TwigEngine::class);
70
71
        if (in_array($this->getEnvironment(), ['test'], true)) {
72
            $c->autowire('test.client', Client::class)
73
                ->setPublic(true); // Public needed!
74
        }
75
76
        //Controllers
77
        $c->autowire(EngineAsArgumentController::class)