Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
loadEnvFile example
$this
->
addCallingPlugin
(
$commercialComposerJson
)
;
$this
->
addActivePlugins
(
'SwagCommercial'
)
;
}
$classLoader
=
$this
->
getClassLoader
(
)
;
if
(
class_exists
(
BypassFinals::
class
)
&&
$this
->bypassFinals
)
{
BypassFinals::
enable
(
)
;
}
if
(
$this
->loadEnvFile
)
{
$this
->
loadEnvFile
(
)
;
}
$_SERVER
[
'DATABASE_URL'
]
=
$_ENV
[
'DATABASE_URL'
]
=
$this
->
getDatabaseUrl
(
)
;
KernelLifecycleManager::
prepare
(
$classLoader
)
;
if
(
$this
->
isForceInstall
(
)
|| !
$this
->
dbExists
(
)
)
{
$this
->
install
(
)
;
if
(
!
empty
(
$this
->activePlugins
)
)
{
$this
->
installPlugins
(
)
;
}