Framework::
class,
FrameworkBundle::
class,
]);
$service =
new Definition(Packages::
class);
$service->
setPublic(true
);
$container->
setDefinition('assets.packages',
$service);
$container->
setDefinition('shopware.asset.asset_without_versioning',
new Definition(Package::
class));
$container->
setDefinition('shopware.asset.asset.version_strategy',
new Definition(EmptyVersionStrategy::
class));
$compilerPass =
new AssetBundleRegistrationCompilerPass();
$container->
addCompilerPass($compilerPass);
$compilerPass->
process($container);
$container->
set('shopware.asset.asset_without_versioning',
$this->
createMock(Package::
class));
/** @var Packages $assetService */
$assetService =
$container->
get('assets.packages'
);
$assetService->
getPackage('@Framework'
);