Code Duplication    Length = 21-24 lines in 2 locations

src/Comodojo/Dispatcher/Events/ServiceEvent.php 1 location

@@ 54-77 (lines=24) @@
51
    use ResponseTrait;
52
    use ExtraTrait;
53
54
    public function __construct(
55
        $name,
56
        Configuration $configuration,
57
        LoggerInterface $logger,
58
        CacheManager $cache,
59
        EventsManager $events,
60
        Request $request,
61
        Router $router,
62
        Response $response,
63
        Extra $extra
64
    ) {
65
66
        parent::__construct($name);
67
68
        $this->setConfiguration($configuration);
69
        $this->setLogger($logger);
70
        $this->setCache($cache);
71
        $this->setEvents($events);
72
        $this->setRequest($request);
73
        $this->setRouter($router);
74
        $this->setResponse($response);
75
        $this->setExtra($extra);
76
77
    }
78
79
}
80

src/Comodojo/Dispatcher/Service/AbstractService.php 1 location

@@ 53-73 (lines=21) @@
50
51
    protected static $supported_methods = ['GET','PUT','POST','DELETE','OPTIONS','HEAD','TRACE','CONNECT','PURGE'];
52
53
    public function __construct(
54
        Configuration $configuration,
55
        LoggerInterface $logger,
56
        CacheManager $cache,
57
        EventsManager $events,
58
        Request $request,
59
        Router $router,
60
        Response $response,
61
        Extra $extra
62
    ) {
63
64
        parent::__construct($configuration, $logger);
65
66
        $this->setCache($cache);
67
        $this->setEvents($events);
68
        $this->setRequest($request);
69
        $this->setRouter($router);
70
        $this->setResponse($response);
71
        $this->setExtra($extra);
72
73
    }
74
75
    /**
76
     * Get service-implemented HTTP methods