Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addCsrfSection example
$willBeAvailable
=
static
function
Dstring
$package
, string
$class
, string
$parentPackage
= null
)
{
$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
)
;