mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
Fix usage of FOS QueryParam::getKey() that is protected since 1.8
This commit is contained in:
parent
2b86a2346d
commit
fd6d9ac7a7
@ -40,7 +40,7 @@ final class FosRestDescriber implements RouteDescriberInterface
|
||||
foreach ($this->getOperations($api, $route) as $operation) {
|
||||
foreach ($annotations as $annotation) {
|
||||
$in = $annotation instanceof QueryParam ? 'query' : 'formData';
|
||||
$parameter = $operation->getParameters()->get($annotation->getKey(), $in);
|
||||
$parameter = $operation->getParameters()->get($annotation->getName(), $in);
|
||||
|
||||
$parameter->setAllowEmptyValue($annotation->nullable && $annotation->allowBlank);
|
||||
$parameter->setType($annotation->map ? 'array' : 'string');
|
||||
|
Loading…
x
Reference in New Issue
Block a user