JBZoo\Utils\Env::getVersion PHP Method

getVersion() public static method

Deprecation:
public static getVersion ( ) : string
return string
    public static function getVersion()
    {
        return Sys::getVersion();
    }

Usage Example

Example #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::getVersion