Метод | Описание | |
---|---|---|
__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 __construct ( array $options = [] ) | ||
$options | array |
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 | |
Результат |