Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
DBALHandlerCompilerPass example
$container
->
addCompilerPass
(
new
StaticResourcesCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
AddConsoleCommandPass
(
)
)
;
$container
->
addCompilerPass
(
new
ConfigureContainerAwareCommands
(
)
)
;
$container
->
addCompilerPass
(
new
LegacyApiResourcesPass
(
)
)
;
$container
->
addCompilerPass
(
new
ConfigureApiResourcesPass
(
)
, PassConfig::TYPE_OPTIMIZE, -500
)
;
$container
->
addCompilerPass
(
new
RegisterFieldsCompilerPass
(
)
, PassConfig::TYPE_BEFORE_OPTIMIZATION, 500
)
;
$container
->
addCompilerPass
(
new
RegisterDynamicController
(
)
)
;
$container
->
addCompilerPass
(
new
RegisterTypeRepositories
(
)
)
;
$container
->
addCompilerPass
(
new
ControllerCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
RegisterControllerArgumentLocatorsPass
(
'argument_resolver.service', 'shopware.controller'
)
)
;
$container
->
addCompilerPass
(
new
VersionCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
DBALHandlerCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
ESHandlerCompilerPass
(
)
)
;
$container
->
setParameter
(
'active_plugins',
$this
->activePlugins
)
;
$this
->
loadPlugins
(
$container
)
;
}
/** * Adds all shopware configuration as di container parameter. * Each shopware configuration has the alias "shopware." * * @param string $alias * @param array $options */