-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Hi. IDK if put this here or in paknahad/jsonapi-bundle, because this happens when using this extension.
I get this error (when authenticating using NelmioApiDocs or via Postman) when I use a custom Finder or paknahad/jsonapi-querifier-bundle:
[critical] Uncaught Error: Argument 1 passed to Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory::createRequest() must be an instance of Symfony\Component\HttpFoundation\Request, null given, called in ./vendor/paknahad/jsonapi-bundle/src/Factory/JsonApiFactory.php on line 45
When
APP_DEBUGis set totrue, this break the JSON response with the warning as plain text, so only works withAPP_DEBUG=false.
Seems to be related with the requestStack, like an issue in AdactiveSAS/saml2-bridge-bundle#28
jsonapi-bundle/src/Factory/JsonApiFactory.php
Lines 41 to 46 in 98c75e1
| public function create(): JsonApi | |
| { | |
| $jsonApiRequest = new JsonApiRequest( | |
| $this->psrFactory->createRequest($this->requestStack->getCurrentRequest()), | |
| $this->exceptionFactory | |
| ); |
Maybe my config is wrong?
My services.yaml config is:
services:
paknahad_json_api.helper_filter.finder:
class: Paknahad\JsonApiQuerifierBundle\Finder\Querifier
public: false
tags:
- { name: paknahad.json_api.finder }Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels