-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add apollo upload server supports #288
Add apollo upload server supports #288
Conversation
ac1478e
to
5db0c3f
Compare
cda4298
to
78c88ca
Compare
78c88ca
to
002d0f1
Compare
Request/BatchParser.php
Outdated
@@ -49,17 +51,29 @@ public function parse(Request $request) | |||
*/ | |||
private function getParsedBody(Request $request) | |||
{ | |||
$type = explode(';', $request->headers->get('content-type'))[0]; | |||
$contentType = explode(';', $request->headers->get('content-type'))[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass 2
in the 3rd param
Definition/Type/CustomScalarType.php
Outdated
{ | ||
if (isset($this->config['scalarType'])) { | ||
$scalarType = $this->config['scalarType']; | ||
$scalarType = is_callable($scalarType) ? $scalarType() : $scalarType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you reassign $scalarType
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we also allow lazy loading of the scalarType
config entry.
Request/UploadParserTrait.php
Outdated
return isset($payload['operations']) && isset($payload['map']) && is_array($payload['operations']) && is_array($payload['map']); | ||
} | ||
|
||
protected function treatUploadFiles(array $parsedBody, array $files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename into handleUploadedFiles
Request/UploadParserTrait.php
Outdated
* | ||
* @return array | ||
*/ | ||
protected function mappingUploadFiles(array $operations, array $map, array $files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename into bindUploadedFiles
e24f44a
to
94202e9
Compare
Make this bundle request parser complient with jaydenseric/graphql-multipart-request-spec.
Unfortunately Ecodev/graphql-upload does not supports
php < 7.1
.