Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addEsiSection example
$parentPackages
=
(array)
$parentPackage
;
$parentPackages
[
]
= 'symfony/framework-bundle';
return
ContainerBuilder::
willBeAvailable
(
$package
,
$class
,
$parentPackages
)
;
}
;
$enableIfStandalone
=
fn
(
string
$package
, string
$class
)
=> !
class_exists
(
FullStack::
class
)
&&
$willBeAvailable
(
$package
,
$class
)
? 'canBeDisabled' : 'canBeEnabled';
$this
->
addCsrfSection
(
$rootNode
)
;
$this
->
addFormSection
(
$rootNode
,
$enableIfStandalone
)
;
$this
->
addHttpCacheSection
(
$rootNode
)
;
$this
->
addEsiSection
(
$rootNode
)
;
$this
->
addSsiSection
(
$rootNode
)
;
$this
->
addFragmentsSection
(
$rootNode
)
;
$this
->
addProfilerSection
(
$rootNode
)
;
$this
->
addWorkflowSection
(
$rootNode
)
;
$this
->
addRouterSection
(
$rootNode
)
;
$this
->
addSessionSection
(
$rootNode
)
;
$this
->
addRequestSection
(
$rootNode
)
;
$this
->
addAssetsSection
(
$rootNode
,
$enableIfStandalone
)
;
$this
->
addAssetMapperSection
(
$rootNode
,
$enableIfStandalone
)
;
$this
->
addTranslatorSection
(
$rootNode
,
$enableIfStandalone
)
;
$this
->
addValidationSection
(
$rootNode
,
$enableIfStandalone
)
;