mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
[ExtractorHandler] code cleaning
This commit is contained in:
parent
7f79ddc065
commit
3e04cbfdf1
@ -19,7 +19,7 @@ use FOS\RestBundle\Controller\Annotations\QueryParam;
|
|||||||
|
|
||||||
class FosRestHandler implements HandlerInterface
|
class FosRestHandler implements HandlerInterface
|
||||||
{
|
{
|
||||||
public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method)
|
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method)
|
||||||
{
|
{
|
||||||
foreach ($annotations as $annot) {
|
foreach ($annotations as $annot) {
|
||||||
if ($annot instanceof RequestParam) {
|
if ($annot instanceof RequestParam) {
|
||||||
|
@ -18,7 +18,7 @@ use JMS\SecurityExtraBundle\Annotation\Secure;
|
|||||||
|
|
||||||
class JmsSecurityExtraHandler implements HandlerInterface
|
class JmsSecurityExtraHandler implements HandlerInterface
|
||||||
{
|
{
|
||||||
public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method)
|
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method)
|
||||||
{
|
{
|
||||||
foreach ($annotations as $annot) {
|
foreach ($annotations as $annot) {
|
||||||
if ($annot instanceof Secure) {
|
if ($annot instanceof Secure) {
|
||||||
|
@ -18,7 +18,7 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
|
|||||||
|
|
||||||
class SensioFrameworkExtraHandler implements HandlerInterface
|
class SensioFrameworkExtraHandler implements HandlerInterface
|
||||||
{
|
{
|
||||||
public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method)
|
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method)
|
||||||
{
|
{
|
||||||
foreach ($annotations as $annot) {
|
foreach ($annotations as $annot) {
|
||||||
if ($annot instanceof Cache) {
|
if ($annot instanceof Cache) {
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
namespace Nelmio\ApiDocBundle\Extractor;
|
namespace Nelmio\ApiDocBundle\Extractor;
|
||||||
|
|
||||||
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
||||||
|
|
||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
|
|
||||||
interface HandlerInterface
|
interface HandlerInterface
|
||||||
@ -25,5 +24,5 @@ interface HandlerInterface
|
|||||||
* @param Symfony\Component\Routing\Route $route
|
* @param Symfony\Component\Routing\Route $route
|
||||||
* @param ReflectionMethod $method
|
* @param ReflectionMethod $method
|
||||||
*/
|
*/
|
||||||
public function handle(ApiDoc $annotation, $annotations, Route $route, \ReflectionMethod $method);
|
public function handle(ApiDoc $annotation, array $annotations, Route $route, \ReflectionMethod $method);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user