Merge pull request #331 from ahilles107/patch-1

Don't try to call class with custom handlers.
This commit is contained in:
William Durand 2014-02-05 16:39:04 +01:00
commit e8a1e639ef

View File

@ -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 // if we got this far, it's a general class name
$exp = explode("\\", $type); $exp = explode("\\", $type);