[ExtractorHandler] code cleaning

This commit is contained in:
fvilpoix 2013-04-17 14:24:45 +02:00
parent 7f79ddc065
commit 3e04cbfdf1
4 changed files with 4 additions and 5 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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);
} }