We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52148d commit 56325a1Copy full SHA for 56325a1
cloud_sql/postgres/pdo/composer.json
@@ -14,8 +14,8 @@
14
"php": ">= 7.2",
15
"slim/slim": "^4.5",
16
"slim/twig-view": "^3.1",
17
- "pimple/pimple": "^3.3",
18
- "guzzlehttp/psr7": "^1.6",
19
- "http-interop/http-factory-guzzle": "^1.0"
+ "slim/http": "^1.0",
+ "slim/psr7": "^1.0",
+ "pimple/pimple": "^3.3"
20
}
21
cloud_sql/postgres/pdo/index.php
@@ -17,7 +17,7 @@
declare(strict_types=1);
-use GuzzleHttp\Psr7;
+use Slim\Psr7\Factory\StreamFactory;
22
include __DIR__ . '/vendor/autoload.php';
23
@@ -48,7 +48,8 @@
48
: 'An error occurred';
49
50
51
- return $response->withBody(Psr7\stream_for($message));
+ $streamFactory = new StreamFactory;
52
+ return $response->withBody($streamFactory->createStream($message));
53
});
54
55
$app->run();
0 commit comments