Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
20 | public function __construct(Gitlab $gitlab, GitlabRepositoryManager $repositoryManager) |
||
21 | { |
||
22 | $matcher = new UrlMatcher(new Routing($gitlab, $repositoryManager), new RequestContext); |
||
23 | |||
24 | $dispatcher = new EventDispatcher; |
||
25 | $dispatcher->addSubscriber(new ExceptionListener([ExceptionController::class, 'handle'])); |
||
26 | $dispatcher->addSubscriber(new RouterListener($matcher, new RequestStack)); |
||
27 | |||
28 | parent::__construct($dispatcher, new ControllerResolver, new RequestStack, new ArgumentResolver); |
||
29 | } |
||
31 |