Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
initializeShopware example
if
(
$this
->booted
)
{
return
;
}
if
(
!
$skipDatabase
)
{
$dbConn
=
$this
->config
[
'db'
]
;
$this
->connection = Components\DependencyInjection\Bridge\Db::
createPDO
(
$dbConn
)
;
$this
->
initializePlugins
(
)
;
}
$this
->
initializeContainer
(
)
;
$this
->
initializeShopware
(
)
;
foreach
(
$this
->
getBundles
(
)
as
$bundle
)
{
$bundle
->
setContainer
(
$this
->container
)
;
if
(
(
!
$bundle
instanceof Plugin
)
||
$bundle
->
isActive
(
)
)
{
$bundle
->
boot
(
)
;
}
if
(
!
$bundle
instanceof Plugin
)
{
continue
;
}