[HttpKernel] fixed the Kernel when the ClassLoader component is not available (closes #7406)
This commit is contained in:
parent
9714cc2682
commit
972bde73ce
@ -101,7 +101,9 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
if ($this->debug) {
|
if ($this->debug) {
|
||||||
error_reporting(-1);
|
error_reporting(-1);
|
||||||
|
|
||||||
|
if (class_exists('Symfony\Component\ClassLoader\DebugClassLoader')) {
|
||||||
DebugClassLoader::enable();
|
DebugClassLoader::enable();
|
||||||
|
}
|
||||||
ErrorHandler::register($this->errorReportingLevel);
|
ErrorHandler::register($this->errorReportingLevel);
|
||||||
if ('cli' !== php_sapi_name()) {
|
if ('cli' !== php_sapi_name()) {
|
||||||
ExceptionHandler::register();
|
ExceptionHandler::register();
|
||||||
|
Reference in New Issue
Block a user