Skip to content
Snippets Groups Projects
Select Git revision
  • 8be0434c0aa7126531a355dc833f538b3d69c036
  • master default protected
  • fix/body-raw
  • devel
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0
10 results

HttpClientFactory.php

Blame
  • HttpClientFactory.php 305 B
    <?php
    
    namespace WPDesk\HttpClient;
    
    
    class HttpClientFactory
    {
        /**
         * @param HttpClientOptions $options
         * @return HttpClient
         */
        public function createClient(HttpClientOptions $options)
        {
            $className = $options->getHttpClientClass();
            return new $className;
        }
    }