Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
PluginDispatcher
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Middleware;
6
7use Engelsystem\Application;
8
9class PluginDispatcher extends Dispatcher
10{
11    public function __construct(Application $app)
12    {
13        $stack = [];
14        foreach ($app->tagged('plugin.middleware') as $middleware) {
15            $stack[] = $middleware;
16        }
17
18        parent::__construct($stack, $app);
19    }
20}