Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
CustomConfig example
parent::
build
(
$container
)
;
/** @var $extension DependencyInjection\TestExtension */
$extension
=
$container
->
getExtension
(
'test'
)
;
if
(
!
$container
->
getParameterBag
(
)
instanceof FrozenParameterBag
)
{
$container
->
setParameter
(
'container.build_hash', 'test_bundle'
)
;
$container
->
setParameter
(
'container.build_time',
time
(
)
)
;
$container
->
setParameter
(
'container.build_id', 'test_bundle'
)
;
}
$extension
->
setCustomConfig
(
new
CustomConfig
(
)
)
;
$container
->
addCompilerPass
(
new
CheckTypeDeclarationsPass
(
true
)
, PassConfig::TYPE_AFTER_REMOVING, -100
)
;
}
}