Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getDatabaseUrl example
$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
(
)
;
}
}
elseif
(
$this
->forceInstallPlugins
)
{
$this
->
installPlugins
(
)
;
}