Skip to content

Commit

Permalink
Require ^5.1.5 and revert to MASTER_REQUEST to stay compatible (#41)
Browse files Browse the repository at this point in the history
* Usage of HttpKernelInterface::MAIN_REQUEST makes 5.3 the lowest compatible version

* Require ^5.1.5 and revert to MASTER_REQUEST to stay compatible
  • Loading branch information
wjzijderveld authored Jun 10, 2021
1 parent c77bbbf commit b59c54a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "Middleware for adding request id to Symfony Request.",
"license": "MIT",
"require": {
"symfony/http-kernel": "^4.4.13||^5.1.5",
"symfony/http-foundation": "^4.4.7||^5.0.7",
"symfony/http-kernel": "^5.1.5",
"symfony/http-foundation": "^5.0.7",
"ramsey/uuid": "^4.0"
},
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion src/Qandidate/Stack/RequestId.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
/**
* {@inheritDoc}
*/
public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true)
public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
{
if (!$request->headers->has($this->header)) {
$request->headers->set($this->header, $this->generator->generate());
Expand Down

0 comments on commit b59c54a

Please sign in to comment.