mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +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();
|
$array = array();
|
||||||
foreach ($collection as $coll) {
|
foreach ($collection as $coll) {
|
||||||
|
if('none' === $coll['annotation']->getSection()) {
|
||||||
$array[$coll['resource']][] = $coll['annotation']->toArray();
|
$array[$coll['resource']][] = $coll['annotation']->toArray();
|
||||||
|
} else {
|
||||||
|
$array[$coll['annotation']->getSection()][] = $coll['annotation']->toArray();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$processedCollection = array();
|
$processedCollection = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user