mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Always use the SerializerExtractor (from the PropertyInfo component) (#1665)
* Always use the SerializerExtractor (from the PropertyInfo component) * typo
This commit is contained in:
parent
1f4dfb0b2b
commit
8e0713be53
@ -55,9 +55,9 @@ class ObjectModelDescriber implements ModelDescriberInterface, ModelRegistryAwar
|
||||
$properties = $schema->getProperties();
|
||||
|
||||
$class = $model->getType()->getClassName();
|
||||
$context = [];
|
||||
$context = ['serializer_groups' => null]; // Use the SerializerExtractor with no groups check (sf >= 5.1)
|
||||
if (null !== $model->getGroups()) {
|
||||
$context = ['serializer_groups' => array_filter($model->getGroups(), 'is_string')];
|
||||
$context['serializer_groups'] = array_filter($model->getGroups(), 'is_string');
|
||||
}
|
||||
|
||||
$annotationsReader = new AnnotationsReader($this->doctrineReader, $this->modelRegistry);
|
||||
|
Loading…
x
Reference in New Issue
Block a user