Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setBaseFile example
public
static
function
createFromShop
(
ShopwareShop
$shop
, ShopwareConfig
$config
)
{
$self
=
new
self
(
$shop
->
getHost
(
)
?? 'localhost',
$shop
->
getBaseUrl
(
)
?? '',
$shop
->
getSecure
(
)
,
[
]
)
;
$self
->
setShopId
(
$shop
->
getId
(
)
)
;
$self
->
setUrlToLower
(
$config
->
get
(
'routerToLower'
)
)
;
$self
->
setBaseFile
(
$config
->
get
(
'baseFile'
)
)
;
$self
->
setRemoveCategory
(
(bool)
$config
->
get
(
'routerRemoveCategory'
)
)
;
return
$self
;
}
}