当前位置: 首页>>代码示例>>PHP>>正文


PHP Kernel::getCacheDir方法代码示例

本文整理汇总了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();
 }
开发者ID:acmephp,项目名称:symfony-bundle,代码行数:12,代码来源:FeatureContext.php

示例2: getCacheDir

 public function getCacheDir()
 {
     if (in_array($this->environment, ['dev', 'test']) && $this->cacheDir) {
         return $this->cacheDir;
     }
     return parent::getCacheDir();
 }
开发者ID:psk-pz,项目名称:Backend,代码行数:7,代码来源:AppKernel.php

示例3: getCacheDir

 public function getCacheDir()
 {
     if (in_array($this->getEnvironment(), array('dev', 'ci'))) {
         return '/dev/shm/' . $this->getEnvironment() . '/cache/';
     }
     return parent::getCacheDir();
 }
开发者ID:veloxy,项目名称:sourcebox-kunstmaan,代码行数:7,代码来源:AppKernel.php

示例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();
 }
开发者ID:robertdumitrescu,项目名称:Interview-MusicCoursesApplication,代码行数:7,代码来源:AppKernel.php

示例5: getCacheDir

 public function getCacheDir()
 {
     if (array_key_exists('CACHE_DIR', $_ENV)) {
         return $_ENV['CACHE_DIR'] . DIRECTORY_SEPARATOR . $this->environment;
     }
     return parent::getCacheDir();
 }
开发者ID:sgomez,项目名称:CraueConfigBundle,代码行数:7,代码来源:AppKernel.php

示例6: getCacheDir

 /**
  * {@inheritdoc}
  */
 public function getCacheDir()
 {
     if ($this->isVagrantEnvironment()) {
         return '/dev/shm/park-manager/cache/' . $this->getEnvironment();
     }
     return parent::getCacheDir();
 }
开发者ID:sstok,项目名称:park-manager,代码行数:10,代码来源:Kernel.php

示例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();
 }
开发者ID:EightArmCode,项目名称:librarian,代码行数:10,代码来源:AppKernel.php

示例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();
 }
开发者ID:msvrtan,项目名称:cqrs1,代码行数:7,代码来源:AppKernel.php

示例9: getCacheDir

 public function getCacheDir()
 {
     if (in_array($this->environment, array('dev', 'test'))) {
         return $this->getRootDir() . '/cache/' . $this->environment;
     }
     return parent::getCacheDir();
 }
开发者ID:houximing,项目名称:sportfun,代码行数:7,代码来源:AppKernel.php

示例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();
 }
开发者ID:fedegiust,项目名称:Jumph,代码行数:7,代码来源:AppKernel.php

示例11: getCacheDir

 public function getCacheDir()
 {
     if (in_array($this->environment, array('dev', 'test'))) {
         return '/home/vagrant/stecnico/cache/' . $this->environment;
     }
     return parent::getCacheDir();
 }
开发者ID:pabarrientos,项目名称:stecnico,代码行数:7,代码来源:AppKernel.php

示例12: getCacheDir

 /**
  * {@inheritdoc}
  */
 public function getCacheDir()
 {
     if ($this->isVagrantEnvironment()) {
         return '/dev/shm/sylius/cache/' . $this->environment;
     }
     return parent::getCacheDir();
 }
开发者ID:TheMadeleine,项目名称:Sylius,代码行数:10,代码来源:Kernel.php

示例13: getCacheDir

 public function getCacheDir()
 {
     if ($this->gcsBucketName) {
         return sprintf('gs://%s/symfony/cache%s', $this->gcsBucketName, $this->getVersionSuffix());
     }
     return parent::getCacheDir();
 }
开发者ID:GoogleCloudPlatform,项目名称:appengine-symfony-starter-project,代码行数:7,代码来源:AppKernel.php

示例14: getCacheDir

 public function getCacheDir()
 {
     if ($this->vagrant) {
         return '/dev/shm/sages/cache/' . $this->environment;
     }
     return parent::getCacheDir();
 }
开发者ID:Rybbow,项目名称:symfony-blog,代码行数:7,代码来源:AppKernel.php

示例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;
 }
开发者ID:networking,项目名称:platform-sandbox,代码行数:13,代码来源:AppKernel.php


注:本文中的Symfony\Component\HttpKernel\Kernel::getCacheDir方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。