mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +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
@ -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…
x
Reference in New Issue
Block a user