Merge pull request #69 from evillemez/jms_fix

fixed JmsMetadataParser::supports
This commit is contained in:
William Durand 2012-08-27 09:17:09 -07:00
commit b085338166

View File

@ -32,10 +32,13 @@ class JmsMetadataParser implements ParserInterface
*/
public function supports($input)
{
if ($meta = $this->factory->getMetadataForClass($input)) {
return true;
try {
if ($meta = $this->factory->getMetadataForClass($input)) {
return true;
}
} catch (\ReflectionException $e) {
}
return false;
}