public function Kernel::init

1 call to Kernel::init()
Kernel::__construct in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php
Constructor.
3 methods override Kernel::init()
DrupalKernel::init in drupal/core/lib/Drupal/Core/DrupalKernel.php
Overrides Kernel::init().
KernelForTest::init in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fixtures/KernelForTest.php
KernelForTest::init in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php, line 92

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function init() {
  if ($this->debug) {
    ini_set('display_errors', 1);
    error_reporting(-1);
    DebugClassLoader::enable();
    ErrorHandler::register($this->errorReportingLevel);
    if ('cli' !== php_sapi_name()) {
      ExceptionHandler::register();
    }
  }
  else {
    ini_set('display_errors', 0);
  }
}