Skip to content

Commit

Permalink
Upgrade HTTP message factory (#791)
Browse files Browse the repository at this point in the history
* Update symfony/psr-http-message-bridge requirement from ^1.0 to ^2.0

Updates the requirements on [symfony/psr-http-message-bridge](https://github.com/symfony/psr-http-message-bridge) to permit the latest version.
- [Release notes](https://github.com/symfony/psr-http-message-bridge/releases)
- [Changelog](https://github.com/symfony/psr-http-message-bridge/blob/master/CHANGELOG.md)
- [Commits](symfony/psr-http-message-bridge@v1.0.0...v2.0.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Upgrade request factory

* Upgrade factories

* Use nyholm

* Add implementation

* Again...

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
  • Loading branch information
andig and dependabot-preview[bot] authored Aug 8, 2020
1 parent 778c44d commit 75ec0fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
},
"require-dev": {
"phpunit/phpunit": "^7.0",
"symfony/psr-http-message-bridge": "^1.0",
"nyholm/psr7": "^1.1",
"symfony/psr-http-message-bridge": "^2.0",
"guzzlehttp/guzzle": "^6.3",
"zendframework/zend-diactoros": "^2.1",
"jdorn/sql-formatter": "^1.2"
},
"autoload": {
Expand Down
12 changes: 8 additions & 4 deletions test/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@

use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use Symfony\Bridge\PsrHttpMessage\Factory;
use Zend\Diactoros\Uri;
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
use Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory;
use Nyholm\Psr7\Factory\Psr17Factory;
use Nyholm\Psr7\Uri;

use Volkszaehler\Router;

Expand Down Expand Up @@ -63,8 +65,10 @@ static function setupBeforeClass() {

if (testAdapter == 'HTTP') {
static::$client = new Client();
static::$httpFoundationFactory = new Factory\HttpFoundationFactory();
static::$psrFoundationFactory = new Factory\DiactorosFactory();
static::$httpFoundationFactory = new HttpFoundationFactory();

$psr17Factory = new Psr17Factory();
static::$psrFoundationFactory = new PsrHttpFactory($psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory);
}
// cache entity manager
else if (null == self::$app) {
Expand Down

0 comments on commit 75ec0fe

Please sign in to comment.