Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setCalledListeners example
}
}
public
function
lateCollect
(
)
: void
{
foreach
(
$this
->dispatchers
as
$name
=>
$dispatcher
)
{
if
(
!
$dispatcher
instanceof TraceableEventDispatcher
)
{
continue
;
}
$this
->
setCalledListeners
(
$dispatcher
->
getCalledListeners
(
$this
->currentRequest
)
,
$name
)
;
$this
->
setNotCalledListeners
(
$dispatcher
->
getNotCalledListeners
(
$this
->currentRequest
)
,
$name
)
;
$this
->
setOrphanedEvents
(
$dispatcher
->
getOrphanedEvents
(
$this
->currentRequest
)
,
$name
)
;
}
$this
->data =
$this
->
cloneVar
(
$this
->data
)
;
}
public
function
getData
(
)
: array|Data
{
return
$this
->data;
}
}
}
public
function
lateCollect
(
)
: void
{
foreach
(
$this
->dispatchers
as
$name
=>
$dispatcher
)
{
if
(
!
$dispatcher
instanceof TraceableEventDispatcher
)
{
continue
;
}
$this
->
setCalledListeners
(
$dispatcher
->
getCalledListeners
(
$this
->currentRequest
)
,
$name
)
;
$this
->
setNotCalledListeners
(
$dispatcher
->
getNotCalledListeners
(
$this
->currentRequest
)
,
$name
)
;
$this
->
setOrphanedEvents
(
$dispatcher
->
getOrphanedEvents
(
$this
->currentRequest
)
,
$name
)
;
}
$this
->data =
$this
->
cloneVar
(
$this
->data
)
;
}
public
function
getData
(
)
: array|Data
{
return
$this
->data;
}