phpmodules / guzzle
一个提供者
1.0.0
2018-05-25 06:50 UTC
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- pimple/pimple: ^3.2
This package is not auto-updated.
Last update: 2024-09-15 05:34:10 UTC
README
安装
composer require phpmodules/guzzle
使用方法
用于 Zend Expressive
在 config\config.php
文件中
$aggregator = new ConfigAggregator([ \Zend\Expressive\Router\FastRouteRouter\ConfigProvider::class, \Zend\HttpHandlerRunner\ConfigProvider::class, // Include cache configuration new ArrayProvider($cacheConfig), \Zend\Expressive\Helper\ConfigProvider::class, \Zend\Expressive\ConfigProvider::class, \Zend\Expressive\Router\ConfigProvider::class, // ------------ \PHPModules\Guzzle\ConfigProvider::class, // ------------ // Load application config in a pre-defined order in such a way that local settings // overwrite global settings. (Loaded as first to last): // - `global.php` // - `*.global.php` // - `local.php` // - `*.local.php` new PhpFileProvider(realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php'), // Load development config if it exists new PhpFileProvider(realpath(__DIR__) . '/development.config.php'), ], $cacheConfig['config_cache_path']);