mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Added TODO comment to the workaround
This commit is contained in:
parent
b3d628a31b
commit
2acf49e9ee
@ -96,6 +96,11 @@ class FormTypeParser implements ParserInterface
|
||||
if ('' === $bestType) {
|
||||
if ($type = $config->getType()) {
|
||||
if ($type = $type->getInnerType()) {
|
||||
/**
|
||||
* TODO: Implement a better handling of unsupported types
|
||||
* This is just a temporary workaround for don't breaking docs page in case of unsupported types
|
||||
* like the entity type https://github.com/nelmio/NelmioApiDocBundle/issues/94
|
||||
*/
|
||||
try {
|
||||
$subForm = $this->formFactory->create($type);
|
||||
$parameters = array_merge($parameters, $this->parseForm($subForm, $name));
|
||||
|
Loading…
x
Reference in New Issue
Block a user