Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
collectLessDefinitions example
$this
->
compileLess
(
$timestamp
,
$shop
->
getTemplate
(
)
,
$shop
)
;
$this
->
compileJavascript
(
$timestamp
,
$shop
->
getTemplate
(
)
,
$shop
)
;
}
/** * @throws Exception * * @return Configuration */
public
function
getThemeConfiguration
(
Shop
$shop
)
{
$less
=
$this
->lessCollector->
collectLessDefinitions
(
$shop
->
getTemplate
(
)
,
$shop
)
;
$js
=
$this
->javascriptCollector->
collectJavascriptFiles
(
$shop
->
getTemplate
(
)
,
$shop
)
;
$config
=
$this
->
getConfig
(
$shop
->
getTemplate
(
)
,
$shop
)
;
$timestamp
=
$this
->
getThemeTimestamp
(
$shop
)
;
$lessFiles
=
[
]
;
foreach
(
$less
as
$definition
)
{
$config
=
array_merge
(
$config
,
$definition
->
getConfig
(
)
)
;
$lessFiles
=
array_merge
(
$lessFiles
,
$definition
->
getFiles
(
)
)
;
}