Skip to content

Commit 4a61c8a

Browse files
committed
Migrate from Zend to Laminas
1 parent d7e4b6a commit 4a61c8a

File tree

5 files changed

+188
-121
lines changed

5 files changed

+188
-121
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ composer require ecodev/graphql-upload
2323

2424
### Configure as middleware
2525

26-
In Zend Expressive, it would typically be in `config/routes.php` something like:
26+
In Laminas Mezzio, it would typically be in `config/routes.php` something like:
2727

2828
```php
2929
use Application\Action\GraphQLAction;
30-
use Zend\Expressive\Helper\BodyParams\BodyParamsMiddleware;
30+
use Mezzio\Helper\BodyParams\BodyParamsMiddleware;
3131
use GraphQL\Upload\UploadMiddleware;
3232

3333
$app->post('/graphql', [
@@ -56,7 +56,7 @@ If you don't use middleware, it can be called directly like so:
5656

5757
use GraphQL\Server\StandardServer;
5858
use GraphQL\Upload\UploadMiddleware;
59-
use Zend\Diactoros\ServerRequestFactory;
59+
use Laminas\Diactoros\ServerRequestFactory;
6060

6161
// Create request (or get it from a framework)
6262
$request = ServerRequestFactory::fromGlobals();
@@ -117,5 +117,5 @@ $schema = new Schema([
117117
## Limitations
118118

119119
- It only works with PSR-7 requests. If you were not using PSR-7 yet,
120-
[zend-diactoros](https://github.com/zendframework/zend-diactoros) is one of many
120+
[laminas-diactoros](https://github.com/laminas/laminas-diactoros) is one of many
121121
implementation that could be used to create PSR-7 requests.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"friendsofphp/php-cs-fixer": "@stable",
34-
"zendframework/zend-diactoros":"@stable",
34+
"laminas/laminas-diactoros": "@stable",
3535
"phpunit/phpunit": "@stable",
3636
"phpstan/phpstan": "@stable"
3737
},

0 commit comments

Comments
 (0)