File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Bridge/Symfony/Routing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 16
16
use ApiPlatform \Core \Api \UrlGeneratorInterface ;
17
17
use Symfony \Component \HttpFoundation \Exception \RequestExceptionInterface ;
18
18
use Symfony \Component \HttpFoundation \Request ;
19
- use Symfony \Component \Routing \Exception \RouteNotFoundException ;
19
+ use Symfony \Component \Routing \Exception \ResourceNotFoundException ;
20
20
use Symfony \Component \Routing \RequestContext ;
21
21
use Symfony \Component \Routing \RouterInterface ;
22
22
@@ -77,7 +77,7 @@ public function match($pathInfo)
77
77
try {
78
78
$ context = (new RequestContext ())->fromRequest ($ request );
79
79
} catch (RequestExceptionInterface $ e ) {
80
- throw new RouteNotFoundException ('Invalid request context. ' );
80
+ throw new ResourceNotFoundException ('Invalid request context. ' );
81
81
}
82
82
83
83
$ context ->setPathInfo ($ pathInfo );
You can’t perform that action at this time.
0 commit comments