Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
DisableRateLimiterCompilerPass example
$container
->
addCompilerPass
(
new
TwigEnvironmentCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
RouteScopeCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
AssetRegistrationCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
AssetBundleRegistrationCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
FilesystemConfigMigrationCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
RateLimiterCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
IncrementerGatewayCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
RedisPrefixCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
AutoconfigureCompilerPass
(
)
, PassConfig::TYPE_BEFORE_OPTIMIZATION, 1000
)
;
if
(
$container
->
getParameter
(
'kernel.environment'
)
=== 'test'
)
{
$container
->
addCompilerPass
(
new
DisableRateLimiterCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
ContainerVisibilityCompilerPass
(
)
)
;
}
$container
->
addCompilerPass
(
new
FrameworkMigrationReplacementCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
DemodataCompilerPass
(
)
)
;
parent::
build
(
$container
)
;
}
public
function
boot
(
)
: void
{