| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Authentication extends Session |
||
| 19 | { |
||
| 20 | protected RoutesConfig $routesConfig; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Authentication constructor. |
||
| 24 | * |
||
| 25 | * @param ISession $session |
||
| 26 | * @param SessionHandlerInterface $sessionHandler |
||
| 27 | * @param RoutesConfig $routesConfig |
||
| 28 | */ |
||
| 29 | public function __construct(ISession $session, SessionHandlerInterface $sessionHandler, RoutesConfig $routesConfig) |
||
| 30 | { |
||
| 31 | parent::__construct($session, $sessionHandler); |
||
| 32 | |||
| 33 | $this->routesConfig = $routesConfig; |
||
| 34 | } |
||
| 35 | |||
| 36 | // $next consists of the next middleware in the pipeline |
||
| 37 | public function handle(Request $request, Closure $next): Response |
||
| 44 | } |
||
| 45 | } |
||
| 46 |