本文整理汇总了PHP中Symfony\Component\HttpKernel\Kernel::getCacheDir方法的典型用法代码示例。如果您正苦于以下问题:PHP Kernel::getCacheDir方法的具体用法?PHP Kernel::getCacheDir怎么用?PHP Kernel::getCacheDir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symfony\Component\HttpKernel\Kernel
的用法示例。
在下文中一共展示了Kernel::getCacheDir方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: theFollowingAcmePhpConfiguration
/**
* @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();
}
示例2: getCacheDir
public function getCacheDir()
{
if (in_array($this->environment, ['dev', 'test']) && $this->cacheDir) {
return $this->cacheDir;
}
return parent::getCacheDir();
}
示例3: getCacheDir
public function getCacheDir()
{
if (in_array($this->getEnvironment(), array('dev', 'ci'))) {
return '/dev/shm/' . $this->getEnvironment() . '/cache/';
}
return parent::getCacheDir();
}
示例4: getCacheDir
public function getCacheDir()
{
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
return sprintf('/tmp/symfony/music/cache/%s', $this->environment);
}
return parent::getCacheDir();
}
示例5: getCacheDir
public function getCacheDir()
{
if (array_key_exists('CACHE_DIR', $_ENV)) {
return $_ENV['CACHE_DIR'] . DIRECTORY_SEPARATOR . $this->environment;
}
return parent::getCacheDir();
}
示例6: getCacheDir
/**
* {@inheritdoc}
*/
public function getCacheDir()
{
if ($this->isVagrantEnvironment()) {
return '/dev/shm/park-manager/cache/' . $this->getEnvironment();
}
return parent::getCacheDir();
}
示例7: getCacheDir
/**
* @see \Symfony\Component\HttpKernel\Kernel::getCacheDir()
*/
public function getCacheDir()
{
if (in_array($this->environment, ['dev', 'test'])) {
return '/dev/shm/librarian/cache/' . $this->environment;
}
return parent::getCacheDir();
}
示例8: getCacheDir
public function getCacheDir()
{
if ($this->getRootDir() === '/vagrant/app' && in_array($this->environment, ['dev', 'test'])) {
return '/dev/shm/appname/cache/' . $this->environment;
}
return parent::getCacheDir();
}
示例9: getCacheDir
public function getCacheDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return $this->getRootDir() . '/cache/' . $this->environment;
}
return parent::getCacheDir();
}
示例10: getCacheDir
public function getCacheDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return sys_get_temp_dir() . '/jumph/cache/' . $this->environment;
}
return parent::getCacheDir();
}
示例11: getCacheDir
public function getCacheDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return '/home/vagrant/stecnico/cache/' . $this->environment;
}
return parent::getCacheDir();
}
示例12: getCacheDir
/**
* {@inheritdoc}
*/
public function getCacheDir()
{
if ($this->isVagrantEnvironment()) {
return '/dev/shm/sylius/cache/' . $this->environment;
}
return parent::getCacheDir();
}
示例13: getCacheDir
public function getCacheDir()
{
if ($this->gcsBucketName) {
return sprintf('gs://%s/symfony/cache%s', $this->gcsBucketName, $this->getVersionSuffix());
}
return parent::getCacheDir();
}
示例14: getCacheDir
public function getCacheDir()
{
if ($this->vagrant) {
return '/dev/shm/sages/cache/' . $this->environment;
}
return parent::getCacheDir();
}
示例15: getCacheDir
/**
* {@inheritdoc}
*/
public function getCacheDir()
{
return parent::getCacheDir();
// $environment = getenv("PLATFORM_ENVIRONMENT");
//
// if (!$environment) {
// return parent::getCacheDir();
// }
// return $this->rootDir . '/cache/' . $environment . '/' . $this->environment;
}