Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createIniNamespace example
if
(
$this
->
readFromDb
(
)
)
{
$this
->namespaces
[
$key
]
=
$this
->
createDbNamespace
(
$namespace
,
$this
->shop ?
$this
->shop->
getId
(
)
: 1,
$this
->locale ?
$this
->locale->
getId
(
)
:
$this
->
getDefaultLocale
(
)
->
getId
(
)
)
;
}
if
(
$this
->
readFromIni
(
$key
)
)
{
$this
->namespaces
[
$key
]
=
$this
->
createIniNamespace
(
$namespace
)
;
}
if
(
!
isset
(
$this
->namespaces
[
$key
]
)
)
{
$this
->namespaces
[
$key
]
=
new
$this
->
defaultNamespaceClass
(
[
'name' =>
$namespace
]
)
;
}
$instance
=
$this
->namespaces
[
$key
]
;
if
(
$this
->
requiresFallback
(
$instance
)
)
{
$instance
->
setFallback
(
$this
->
createDbNamespace
(
$namespace
, 1,
$this
->fallbackLocale->
getId
(
)
)
)
;
}