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