Code Duplication    Length = 11-22 lines in 3 locations

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

@@ 37-58 (lines=22) @@
34
35
    use DataAccessTrait;
36
37
    public function __construct(
38
        $name,
39
        Logger $logger,
40
        Request $request,
41
        Router $router,
42
        Response $response,
43
        Extra $extra
44
    ) {
45
46
        parent::__construct($name);
47
48
        $this->logger = $logger;
49
50
        $this->request = $request;
51
52
        $this->router = $router;
53
54
        $this->response = $response;
55
56
        $this->extra = $extra;
57
58
    }
59
60
}
61

src/Comodojo/Dispatcher/Output/Processor.php 1 location

@@ 48-58 (lines=11) @@
45
46
class Processor extends DispatcherClassModel {
47
48
    public function __construct(Configuration $configuration, LoggerInterface $logger, Request $request, Response $response) {
49
50
        parent::__construct($configuration, $logger);
51
52
        $this->response = $response;
53
54
        $this->request = $request;
55
        
56
        $this->codes = new HttpStatusCodes();
57
58
    }
59
60
    public function send() {
61

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

@@ 36-55 (lines=20) @@
33
34
abstract class AbstractService extends DispatcherClassModel {
35
36
    public function __construct(
37
        Configuration $configuration,
38
        LoggerInterface $logger,
39
        Request $request,
40
        Router $router,
41
        Response $response,
42
        Extra $extra
43
    ) {
44
45
        parent::__construct($configuration, $logger);
46
47
        $this->request = $request;
48
49
        $this->router = $router;
50
51
        $this->response = $response;
52
53
        $this->extra = $extra;
54
55
    }
56
57
    /**
58
     * Get service-implemented HTTP methods