Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAppContextSource example
}
public
function
getAppContext
(
Hook
$hook
, Script
$script
)
: Context
{
$scriptAppInformation
=
$script
->
getScriptAppInformation
(
)
;
if
(
!
$scriptAppInformation
)
{
return
$hook
->
getContext
(
)
;
}
return
new
Context
(
$this
->
getAppContextSource
(
$scriptAppInformation
)
,
$hook
->
getContext
(
)
->
getRuleIds
(
)
,
$hook
->
getContext
(
)
->
getCurrencyId
(
)
,
$hook
->
getContext
(
)
->
getLanguageIdChain
(
)
,
$hook
->
getContext
(
)
->
getVersionId
(
)
,
$hook
->
getContext
(
)
->
getCurrencyFactor
(
)
,
$hook
->
getContext
(
)
->
considerInheritance
(
)
,
$hook
->
getContext
(
)
->
getTaxState
(
)
,
$hook
->
getContext
(
)
->
getRounding
(
)
)
;
}