Code Duplication    Length = 9-10 lines in 2 locations

src/AggregateControllerQueryProvider.php 1 location

@@ 64-73 (lines=10) @@
61
    /**
62
     * @param string[] $controllers A list of controllers name in the container.
63
     */
64
    public function __construct(array $controllers, ContainerInterface $container, Reader $annotationReader, TypeMapperInterface $typeMapper, HydratorInterface $hydrator, AuthenticationServiceInterface $authenticationService, AuthorizationServiceInterface $authorizationService)
65
    {
66
        $this->controllers = $controllers;
67
        $this->container = $container;
68
        $this->annotationReader = $annotationReader;
69
        $this->typeMapper = $typeMapper;
70
        $this->hydrator = $hydrator;
71
        $this->authenticationService = $authenticationService;
72
        $this->authorizationService = $authorizationService;
73
    }
74
75
    /**
76
     * @return Field[]

src/ControllerQueryProvider.php 1 location

@@ 62-70 (lines=9) @@
59
    /**
60
     * @param object $controller
61
     */
62
    public function __construct($controller, Reader $annotationReader, TypeMapperInterface $typeMapper, HydratorInterface $hydrator, AuthenticationServiceInterface $authenticationService, AuthorizationServiceInterface $authorizationService)
63
    {
64
        $this->controller = $controller;
65
        $this->annotationReader = $annotationReader;
66
        $this->typeMapper = $typeMapper;
67
        $this->hydrator = $hydrator;
68
        $this->authenticationService = $authenticationService;
69
        $this->authorizationService = $authorizationService;
70
    }
71
72
    /**
73
     * @return Field[]