mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +03:00
Merge pull request #331 from ahilles107/patch-1
Don't try to call class with custom handlers.
This commit is contained in:
commit
e8a1e639ef
1 changed files with 8 additions and 0 deletions
|
@ -184,6 +184,14 @@ class JmsMetadataParser implements ParserInterface
|
|||
);
|
||||
}
|
||||
|
||||
// we can use type property also for custom handlers, then we don't have here real class name
|
||||
if (!class_exists($type)) {
|
||||
return array(
|
||||
'normalized' => sprintf("custom handler result for (%s)", $type),
|
||||
'class' => null
|
||||
);
|
||||
}
|
||||
|
||||
// if we got this far, it's a general class name
|
||||
$exp = explode("\\", $type);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue