Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 |
<?php
|
|
2 |
|
|
3 |
namespace Nuwave\Lighthouse\Support\Compatibility; |
|
4 |
|
|
5 |
use Illuminate\Routing\Router; |
|
6 |
|
|
7 |
class LaravelMiddlewareAdapter implements MiddlewareAdapter |
|
8 |
{
|
|
9 |
/**
|
|
10 |
* @var \Illuminate\Routing\Router
|
|
11 |
*/
|
|
12 |
protected $router; |
|
13 |
|
|
14 |
public function __construct(Router $router) |
|
15 |
{
|
|
16 |
$this->router = $router; |
|
17 |
}
|
|
18 |
|
|
19 |
public function getMiddleware(): array |
|
20 |
{
|
|
21 |
return $this->router->getMiddleware(); |
|
22 |
}
|
|
23 |
|
|
24 |
public function getMiddlewareGroups(): array |
|
25 |
{
|
|
26 |
return $this->router->getMiddlewareGroups(); |
|
27 |
}
|
|
28 |
}
|
Read our documentation on viewing source code .