public function Kernel::getRootDir

Gets the application root dir.

@api

Return value

string The application root dir

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 395

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;
}