return static::
$kernel;
} /**
* @param class-string<Kernel>|null $kernelClass
*/
public static function createKernel(?string
$kernelClass = null, bool
$reuseConnection = true, string
$cacheId = 'h8f3f0ee9c61829627676afd6294bb029', ?string
$projectDir = null
): Kernel
{ if ($kernelClass === null
) { if (static::
$class === null
) { static::
$class =
static::
getKernelClass();
} $kernelClass =
static::
$class;
} $env = EnvironmentHelper::
getVariable('APP_ENV', 'test'
);
$debug =
(bool) EnvironmentHelper::
getVariable('APP_DEBUG', true
);
if (self::
$classLoader === null
) { throw new \
InvalidArgumentException('No class loader set. Please call KernelLifecycleManager::prepare'
);
}