AppserverIo\Appserver\Application\Application::getCacheDir PHP Method

getCacheDir() public method

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

Usage Example

コード例 #1
0
ファイル: ApplicationTest.php プロジェクト: ruchee/appserver
 /**
  * Test if the getter for the cache dir works.
  *
  * @return void
  */
 public function testGetCacheDir()
 {
     $this->assertEquals(ApplicationTest::CACHE_DIR, $this->application->getCacheDir());
 }