public function Kernel::getRootDir

@api

Overrides KernelInterface::getRootDir

1 call to Kernel::getRootDir()
Kernel::__construct in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php
Constructor.

File

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

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function getRootDir() {
  if (null === $this->rootDir) {
    $r = new \ReflectionObject($this);
    $this->rootDir = str_replace('\\', '/', dirname($r
      ->getFileName()));
  }
  return $this->rootDir;
}