$middlewares =
[];
if (\PHP_SAPI !== 'cli' &&
$this->environment !== 'prod' && InstalledVersions::
isInstalled('symfony/doctrine-bridge'
)) { $middlewares =
[new ProfilingMiddleware()];
} $connection = self::
getConnection($middlewares);
$pluginLoader =
$this->
createPluginLoader($connection);
$storage =
new MySQLKeyValueStorage($connection);
$cacheId =
(new CacheIdLoader($storage))->
load();
return $this->kernel =
new static::
$kernelClass( $this->environment,
$this->debug,
$pluginLoader,
$cacheId,
$shopwareVersion,
$connection,
$this->
getProjectDir() );
}