mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
more readable
This commit is contained in:
parent
8f6ac59c97
commit
f16aa64cf0
@ -108,11 +108,11 @@ class ApiDocExtractor
|
||||
if ($method = $this->getReflectionMethod($route->getDefault('_controller'))) {
|
||||
if ($annotation = $this->reader->getMethodAnnotation($method, self::ANNOTATION_CLASS)) {
|
||||
if ($annotation->isResource()) {
|
||||
if (!($resource = $annotation->getResource())) {
|
||||
if ($resource = $annotation->getResource()) {
|
||||
$resources[] = $resource;
|
||||
} else {
|
||||
// remove format from routes used for resource grouping
|
||||
$resources[] = str_replace('.{_format}', '', $route->getPattern());
|
||||
} else {
|
||||
$resources[] = $resource;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user