Skip to content

Commit 9e033fa

Browse files
dunglassoyuka
authored andcommitted
Test and fix API Platform with Symfony 4.4
1 parent 480c077 commit 9e033fa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"require": {
1616
"php": ">=7.1",
1717
"doctrine/inflector": "^1.0",
18+
"fig/link-util": "^1.0@dev",
1819
"psr/cache": "^1.0",
1920
"psr/container": "^1.0",
2021
"symfony/http-foundation": "^3.4 || ^4.0",
@@ -128,5 +129,9 @@
128129
"branch-alias": {
129130
"dev-master": "2.6.x-dev"
130131
}
131-
}
132+
},
133+
"config": {
134+
"sort-packages": true
135+
},
136+
"minimum-stability": "dev"
132137
}

src/Action/ExceptionAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Core\Action;
1515

1616
use ApiPlatform\Core\Util\ErrorFormatGuesser;
17-
use Symfony\Component\Debug\Exception\FlattenException;
17+
use Symfony\Component\ErrorRenderer\Exception\FlattenException;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Symfony\Component\HttpFoundation\Response;
2020
use Symfony\Component\Serializer\SerializerInterface;
@@ -59,7 +59,7 @@ public function __construct(SerializerInterface $serializer, array $errorFormats
5959
/**
6060
* Converts an exception to a JSON response.
6161
*/
62-
public function __invoke(FlattenException $exception, Request $request): Response
62+
public function __invoke($exception, Request $request): Response
6363
{
6464
$exceptionClass = $exception->getClass();
6565
$statusCode = $exception->getStatusCode();

0 commit comments

Comments
 (0)