Code Duplication    Length = 17-17 lines in 2 locations

eZ/Publish/Core/MVC/Symfony/View/Manager.php 1 location

@@ 99-115 (lines=17) @@
96
    /** @var \eZ\Publish\Core\MVC\Symfony\View\Configurator */
97
    private $viewConfigurator;
98
99
    public function __construct(
100
        EngineInterface $templateEngine,
101
        EventDispatcherInterface $eventDispatcher,
102
        Repository $repository,
103
        ConfigResolverInterface $configResolver,
104
        $viewBaseLayout,
105
        $viewConfigurator,
106
        LoggerInterface $logger = null
107
    ) {
108
        $this->templateEngine = $templateEngine;
109
        $this->eventDispatcher = $eventDispatcher;
110
        $this->repository = $repository;
111
        $this->configResolver = $configResolver;
112
        $this->viewBaseLayout = $viewBaseLayout;
113
        $this->logger = $logger;
114
        $this->viewConfigurator = $viewConfigurator;
115
    }
116
117
    /**
118
     * Helper for {@see addContentViewProvider()} and {@see addLocationViewProvider()}.

eZ/Publish/Core/REST/Server/Security/RestAuthenticator.php 1 location

@@ 82-98 (lines=17) @@
79
     */
80
    private $logoutHandlers = array();
81
82
    public function __construct(
83
        TokenStorageInterface $tokenStorage,
84
        AuthenticationManagerInterface $authenticationManager,
85
        $providerKey,
86
        EventDispatcherInterface $dispatcher,
87
        ConfigResolverInterface $configResolver,
88
        SessionStorageInterface $sessionStorage,
89
        LoggerInterface $logger = null
90
    ) {
91
        $this->tokenStorage = $tokenStorage;
92
        $this->authenticationManager = $authenticationManager;
93
        $this->providerKey = $providerKey;
94
        $this->dispatcher = $dispatcher;
95
        $this->configResolver = $configResolver;
96
        $this->sessionStorage = $sessionStorage;
97
        $this->logger = $logger;
98
    }
99
100
    /**
101
     * Doesn't do anything as we don't use this service with main Firewall listener.