1 | <?php |
||
2 | |||
3 | namespace SwooleTW\Http; |
||
4 | |||
5 | use SwooleTW\Http\Server\Manager; |
||
6 | use Illuminate\Contracts\Http\Kernel; |
||
7 | use SwooleTW\Http\Middleware\AccessLog; |
||
8 | |||
9 | /** |
||
10 | * @codeCoverageIgnore |
||
11 | */ |
||
12 | class LaravelServiceProvider extends HttpServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Register manager. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | protected function registerManager() |
||
20 | { |
||
21 | $this->app->singleton(Manager::class, function ($app) { |
||
22 | return new Manager($app, 'laravel'); |
||
23 | }); |
||
24 | |||
25 | $this->app->alias(Manager::class, 'swoole.manager'); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Boot websocket routes. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | protected function bootWebsocketRoutes() |
||
34 | { |
||
35 | require __DIR__ . '/../routes/laravel_routes.php'; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Register access log middleware to container. |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | protected function pushAccessLogMiddleware() |
||
44 | { |
||
45 | $this->app->make(Kernel::class)->pushMiddleware(AccessLog::class); |
||
0 ignored issues
–
show
|
|||
46 | } |
||
47 | } |
||
48 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.