/**
* @internal
*/
trait InstallerControllerTestTrait
{ /**
* @param array<string, object> $services
*/
private function getInstallerContainer(Environment
$twig, array
$services =
[]): ContainerInterface
{ $container =
new ContainerBuilder();
$container->
set('twig',
$twig);
$requestStack =
new RequestStack();
$requestStack->
push(new Request([],
[],
['_route' => 'installer.language-selection'
]));
$container->
set('request_stack',
$requestStack);
$container->
setParameter('shopware.installer.supportedLanguages',
['en' => 'en-GB', 'de' => 'de-DE'
]);
$container->
setParameter('kernel.shopware_version', Kernel::SHOPWARE_FALLBACK_VERSION
);
foreach ($services as $id =>
$service) { $container->
set($id,
$service);
}