Symfony\Component\Cache\Adapter\PhpFilesAdapter::isSupported PHP Method

isSupported() public static method

public static isSupported ( )
    public static function isSupported()
    {
        return function_exists('opcache_compile_file') && ini_get('opcache.enable');
    }

Usage Example

Example #1
0
 public function createCachePool()
 {
     if (!PhpFilesAdapter::isSupported()) {
         $this->markTestSkipped('OPcache extension is not enabled.');
     }
     return new PhpFilesAdapter('sf-cache');
 }
All Usage Examples Of Symfony\Component\Cache\Adapter\PhpFilesAdapter::isSupported