Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Httpクライアントを生成するFactory
<?php
namespace Customize\Factory;
use GuzzleHttp\Client;
class HttpClientFactory
{
public static function create($baseUri)
{
return new Client(['base_uri' => $baseUri, 'timeout' => 10]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment