Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
StackedSessionHandlerPass example
$container
->
addCompilerPass
(
new
DevelopmentSettingsPass
(
)
)
;
$container
->
addCompilerPass
(
new
ProxyServicesPass
(
)
)
;
$container
->
addCompilerPass
(
new
BackendCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
CorsCompilerPass
(
)
)
;
$container
->
addCompilerPass
(
new
StackedKernelPass
(
)
)
;
$container
->
addCompilerPass
(
new
StackedSessionHandlerPass
(
)
)
;
$container
->
addCompilerPass
(
new
MainContentRenderersPass
(
)
)
;
// Collect tagged handler services as method calls on consumer services.
$container
->
addCompilerPass
(
new
TaggedHandlersPass
(
)
)
;
$container
->
addCompilerPass
(
new
RegisterStreamWrappersPass
(
)
)
;
$container
->
addCompilerPass
(
new
TwigExtensionPass
(
)
)
;
// Add a compiler pass for registering event subscribers.
$container
->
addCompilerPass
(
new
RegisterEventSubscribersPass
(
)
, PassConfig::TYPE_AFTER_REMOVING
)
;