Symfony\Component\HttpKernel\Kernel::getCacheDir PHP Méthode

getCacheDir() public méthode

public getCacheDir ( )
    public function getCacheDir()
    {
        return $this->rootDir.'/cache/'.$this->environment;
    }

Same methods

Kernel::getCacheDir ( ) : string

Usage Example

 /**
  * @Given the following acme_php configuration:
  */
 public function theFollowingAcmePhpConfiguration(PyStringNode $rawConfig)
 {
     $yaml = new Yaml();
     $config = ['acme_php' => array_merge($this->getDefaultConfig(), $yaml->parse($rawConfig->getRaw()))];
     $this->filesystem->dumpFile($this->acmeConfigPath, $yaml->dump($config, 4));
     $this->kernel->shutdown();
     $this->filesystem->remove($this->kernel->getCacheDir());
     $this->kernel->boot();
 }
All Usage Examples Of Symfony\Component\HttpKernel\Kernel::getCacheDir