Example #1
0
 /**
  * Bazaar constructor.
  * @param Config $config
  * @param ClientInterface $client
  */
 public function __construct(Config $config, ClientInterface $client = null)
 {
     $this->config = $config;
     $this->storage = $config->storage();
     $this->client = is_null($client) ? new GuzzleClient(new Client()) : $client;
 }