JBZoo\Utils\Env::isHHVM PHP Method

isHHVM() public static method

Deprecation:
public static isHHVM ( ) : boolean
return boolean
    public static function isHHVM()
    {
        return Sys::isHHVM();
    }

Usage Example

Beispiel #1
0
 /**
  * @return Driver
  */
 protected function _getClient()
 {
     if (class_exists('\\GuzzleHttp\\Client') && (version_compare(Env::getVersion(), '5.3', '>') || Env::isHHVM())) {
         if (method_exists('\\GuzzleHttp\\Client', 'request')) {
             $client = new Guzzle6();
         } elseif (method_exists('\\GuzzleHttp\\Client', 'createRequest')) {
             $client = new Guzzle5();
         }
     }
     if (!isset($client)) {
         // Fallback driver
         $client = new Rmccue();
     }
     return $client;
 }
All Usage Examples Of JBZoo\Utils\Env::isHHVM