AppserverIo\Appserver\Application\Application::getCacheDir PHP Метод

getCacheDir() публичный Метод

Returns the absolute path to the applications cache directory.
public getCacheDir ( ) : string
Результат string The app cache directory
    public function getCacheDir()
    {
        return $this->getNamingDirectory()->search(sprintf('php:env/%s/cacheDirectory', $this->getUniqueName()));
    }

Usage Example

Пример #1
0
 /**
  * Test if the getter for the cache dir works.
  *
  * @return void
  */
 public function testGetCacheDir()
 {
     $this->assertEquals(ApplicationTest::CACHE_DIR, $this->application->getCacheDir());
 }