mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
cs
This commit is contained in:
parent
cb8b0c6f90
commit
c3097c7439
@ -24,7 +24,7 @@ class JmsSecurityExtraHandler implements HandlerInterface
|
|||||||
foreach ($annotations as $annot) {
|
foreach ($annotations as $annot) {
|
||||||
if ($annot instanceof PreAuthorize) {
|
if ($annot instanceof PreAuthorize) {
|
||||||
$annotation->setAuthentication(true);
|
$annotation->setAuthentication(true);
|
||||||
} else if ($annot instanceof Secure) {
|
} elseif ($annot instanceof Secure) {
|
||||||
$annotation->setAuthentication(true);
|
$annotation->setAuthentication(true);
|
||||||
$annotation->setAuthenticationRoles(is_array($annot->roles) ? $annot->roles : explode(',', $annot->roles));
|
$annotation->setAuthenticationRoles(is_array($annot->roles) ? $annot->roles : explode(',', $annot->roles));
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,7 @@ class ValidationParser implements ParserInterface, PostParserInterface
|
|||||||
public function parse(array $input)
|
public function parse(array $input)
|
||||||
{
|
{
|
||||||
$className = $input['class'];
|
$className = $input['class'];
|
||||||
|
|
||||||
return $this->doParse($className, array());
|
return $this->doParse($className, array());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,7 +63,7 @@ class ValidationParser implements ParserInterface, PostParserInterface
|
|||||||
* @param array $visited
|
* @param array $visited
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function doParse ($className, array $visited)
|
protected function doParse($className, array $visited)
|
||||||
{
|
{
|
||||||
$params = array();
|
$params = array();
|
||||||
$classdata = $this->factory->getMetadataFor($className);
|
$classdata = $this->factory->getMetadataFor($className);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user