mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
#25 Added handling of sections on the processCollection method of the AbstractFormatter
This commit is contained in:
parent
b7aa5dca72
commit
ad4eae7dd7
@ -127,7 +127,11 @@ abstract class AbstractFormatter implements FormatterInterface
|
||||
{
|
||||
$array = array();
|
||||
foreach ($collection as $coll) {
|
||||
if('none' === $coll['annotation']->getSection()) {
|
||||
$array[$coll['resource']][] = $coll['annotation']->toArray();
|
||||
} else {
|
||||
$array[$coll['annotation']->getSection()][] = $coll['annotation']->toArray();
|
||||
}
|
||||
}
|
||||
|
||||
$processedCollection = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user