mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
fixed check for wrong class in FormTypeParser, fixed CS in ParserInterface
This commit is contained in:
parent
06e3a2256b
commit
b2a2426f76
@ -47,7 +47,7 @@ class FormTypeParser implements ParserInterface
|
|||||||
{
|
{
|
||||||
if (is_string($class) && class_exists($class)) {
|
if (is_string($class) && class_exists($class)) {
|
||||||
$ref = new \ReflectionClass($class);
|
$ref = new \ReflectionClass($class);
|
||||||
return ($ref->implementsInterface('Nelmio\ApiDocBundle\Parser\ParserInterface'));
|
return ($ref->implementsInterface('Symfony\Component\Form\FormTypeInterface'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -22,7 +22,7 @@ interface ParserInterface
|
|||||||
* @param string $item The string name of the class to parse.
|
* @param string $item The string name of the class to parse.
|
||||||
* @return boolean
|
* @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
|
* 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.
|
* @param string $class The string name of the class to parse.
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function parse($className);
|
public function parse($className);
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user