From b2a2426f76c6c9286869285705db60970ec1fbba Mon Sep 17 00:00:00 2001 From: Evan Villemez Date: Mon, 23 Jul 2012 13:27:58 -0400 Subject: [PATCH] fixed check for wrong class in FormTypeParser, fixed CS in ParserInterface --- Parser/FormTypeParser.php | 2 +- Parser/ParserInterface.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index 142f73d..598663d 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -47,7 +47,7 @@ class FormTypeParser implements ParserInterface { if (is_string($class) && class_exists($class)) { $ref = new \ReflectionClass($class); - return ($ref->implementsInterface('Nelmio\ApiDocBundle\Parser\ParserInterface')); + return ($ref->implementsInterface('Symfony\Component\Form\FormTypeInterface')); } return false; diff --git a/Parser/ParserInterface.php b/Parser/ParserInterface.php index e22fb4d..df0ba93 100644 --- a/Parser/ParserInterface.php +++ b/Parser/ParserInterface.php @@ -22,7 +22,7 @@ interface ParserInterface * @param string $item The string name of the class to parse. * @return boolean */ - function supportsClass($className); + public function supportsClass($className); /** * Returns an array of class property metadata where each item is a key (the property name) and @@ -35,6 +35,6 @@ interface ParserInterface * @param string $class The string name of the class to parse. * @return array */ - function parse($className); + public function parse($className); } \ No newline at end of file