Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
makeKernel example
->
get
(
'test.service_container'
)
;
$serviceContainer
->
get
(
'cache.object'
)
->
clear
(
)
;
}
}
public
function
testWithDisabledPlugins
(
)
: void
{
$this
->
insertPlugin
(
$this
->
getActivePlugin
(
)
)
;
$loader
=
new
StaticKernelPluginLoader
(
$this
->classLoader
)
;
$this
->kernel =
$this
->
makeKernel
(
$loader
)
;
$this
->kernel->
boot
(
)
;
static
::
assertEmpty
(
$this
->kernel->
getPluginLoader
(
)
->
getPluginInstances
(
)
->
all
(
)
)
;
}
public
function
testInactive
(
)
: void
{
$this
->
insertPlugin
(
$this
->
getInstalledInactivePlugin
(
)
)
;
$loader
=
new
DbalKernelPluginLoader
(
$this
->classLoader, null,
$this
->connection
)
;
$this
->kernel =
$this
->
makeKernel
(
$loader
)
;