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 0
    public function __construct(Router $router)
15
    {
16 0
        $this->router = $router;
17
    }
18

19 0
    public function getMiddleware(): array
20
    {
21 0
        return $this->router->getMiddleware();
22
    }
23

24 0
    public function getMiddlewareGroups(): array
25
    {
26 0
        return $this->router->getMiddlewareGroups();
27
    }
28
}

Read our documentation on viewing source code .

Loading