protected function templateCacheSetup($templateCache) {
    $cacheDir = $templateCache;
    if ($templateCache === null) {
      $cacheDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "jcalderonzumba" . DIRECTORY_SEPARATOR . "phantomjs";
      if (!file_exists($cacheDir)) {
        mkdir($cacheDir, 0777, true);
      }
    }

    if (!file_exists($cacheDir)) {
      throw new DriverException("Template cache $cacheDir directory does not exist");
    }
    return $cacheDir;
  }
protected function templateCacheSetup($templateCache) {
    $cacheDir = $templateCache;
    if ($templateCache === null) {
      $cacheDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "jcalderonzumba" . DIRECTORY_SEPARATOR . "phantomjs";
      if (!file_exists($cacheDir)) {
        mkdir($cacheDir, 0777, true);
      }
    }

    if (!file_exists($cacheDir)) {
      throw new DriverException("Template cache $cacheDir directory does not exist");
    }
    return $cacheDir;
  }
protected function templateCacheSetup ( $ templateCache ) { $ cacheDir = $ templateCache ; if ( $ templateCache === null ) { $ cacheDir = sys_get_temp_dir ( ) . DIRECTORY_SEPARATOR . "jcalderonzumba" . DIRECTORY_SEPARATOR . "phantomjs" ; if ( ! file_exists ( $ cacheDir ) ) { mkdir ( $ cacheDir , 0777 , true ) ; } } if ( ! file_exists ( $ cacheDir ) ) { throw new DriverException ( "Template cache $cacheDir directory does not exist" ) ; } return $ cacheDir ; }
Sets up the cache template location for the scripts we are going to create with the driver
@param $templateCache
@return string
@throws DriverException
Sets up the cache template location for the scripts we are going to create with the driver