Skip to content

Commit 56325a1

Browse files
committed
remove guzzle
1 parent d52148d commit 56325a1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cloud_sql/postgres/pdo/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"php": ">= 7.2",
1515
"slim/slim": "^4.5",
1616
"slim/twig-view": "^3.1",
17-
"pimple/pimple": "^3.3",
18-
"guzzlehttp/psr7": "^1.6",
19-
"http-interop/http-factory-guzzle": "^1.0"
17+
"slim/http": "^1.0",
18+
"slim/psr7": "^1.0",
19+
"pimple/pimple": "^3.3"
2020
}
2121
}

cloud_sql/postgres/pdo/index.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
declare(strict_types=1);
1919

20-
use GuzzleHttp\Psr7;
20+
use Slim\Psr7\Factory\StreamFactory;
2121

2222
include __DIR__ . '/vendor/autoload.php';
2323

@@ -48,7 +48,8 @@
4848
: 'An error occurred';
4949
}
5050

51-
return $response->withBody(Psr7\stream_for($message));
51+
$streamFactory = new StreamFactory;
52+
return $response->withBody($streamFactory->createStream($message));
5253
});
5354

5455
$app->run();

0 commit comments

Comments
 (0)