메소드 | 설명 | |
---|---|---|
__construct ( array $options = [] ) | Constructor. | |
add ( string $serviceName, array $options = [] ) : |
Adds a service. | |
build ( ) : |
Builds Swap. | |
useCacheItemPool ( Psr\Cache\CacheItemPoolInterface $cacheItemPool ) : |
Uses the given cache item pool. | |
useHttpClient ( Http\Client\HttpClient $httpClient ) : |
Uses the given http client. | |
useRequestFactory ( Http\Message\RequestFactory $requestFactory ) : |
Uses the given request factory. |
public useCacheItemPool ( Psr\Cache\CacheItemPoolInterface $cacheItemPool ) : |
||
$cacheItemPool | Psr\Cache\CacheItemPoolInterface | |
리턴 |
public useHttpClient ( Http\Client\HttpClient $httpClient ) : |
||
$httpClient | Http\Client\HttpClient | |
리턴 |
public useRequestFactory ( Http\Message\RequestFactory $requestFactory ) : |
||
$requestFactory | Http\Message\RequestFactory | |
리턴 |