1 | <?php |
||
10 | class LeagueRoute |
||
11 | { |
||
12 | /** |
||
13 | * @var RouteCollection|null The router container |
||
14 | */ |
||
15 | private $router; |
||
16 | |||
17 | /** |
||
18 | * Constructor. Set the RouteCollection instance. |
||
19 | * |
||
20 | * @param RouteCollection $router |
||
21 | */ |
||
22 | public function __construct(RouteCollection $router = null) |
||
28 | |||
29 | /** |
||
30 | * Extra arguments passed to the controller. |
||
31 | * |
||
32 | * @param RouteCollection $router |
||
33 | * |
||
34 | * @return self |
||
35 | */ |
||
36 | public function router(RouteCollection $router) |
||
42 | |||
43 | /** |
||
44 | * Execute the middleware. |
||
45 | * |
||
46 | * @param ServerRequestInterface $request |
||
47 | * @param ResponseInterface $response |
||
48 | * @param callable $next |
||
49 | * |
||
50 | * @return ResponseInterface |
||
51 | */ |
||
52 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
60 | } |
||
61 |