Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Kernel.php

function Kernel::getCacheDir

Overrides KernelInterface::getCacheDir

3 calls to Kernel::getCacheDir()
Kernel::buildContainer in vendor/symfony/http-kernel/Kernel.php
Builds the service container.
Kernel::getBuildDir in vendor/symfony/http-kernel/Kernel.php
Returns the build directory.
Kernel::getKernelParameters in vendor/symfony/http-kernel/Kernel.php
Returns the kernel parameters.

File

vendor/symfony/http-kernel/Kernel.php, line 295

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function getCacheDir() : string {
    return $this->getProjectDir() . '/var/cache/' . $this->environment;
}
RSS feed
Powered by Drupal