1 | <?php |
||
8 | class SwooleHttpWrapper extends Swoole implements ServerInterface |
||
9 | { |
||
10 | use HttpTrait; |
||
11 | |||
12 | 4 | public function __construct($host, $port) |
|
16 | |||
17 | 8 | public function start() |
|
27 | |||
28 | 8 | public function onWorkerStart($serv, $worker_id) |
|
29 | { |
||
30 | 8 | parent::onWorkerStart($serv, $worker_id); |
|
31 | 8 | $this->accept_gzip = config('laravoole.base_config.gzip'); |
|
32 | 8 | } |
|
33 | |||
34 | 8 | public function onRequest($request, $response) |
|
47 | |||
48 | 8 | protected function ucHeaders($request) |
|
49 | { |
||
50 | // merge headers into server which ar filted by swoole |
||
51 | // make a new array when php 7 has different behavior on foreach |
||
52 | 8 | $new_header = []; |
|
53 | 8 | $uc_header = []; |
|
54 | 8 | foreach ($request->header as $key => $value) { |
|
55 | 8 | $new_header['http_' . $key] = $value; |
|
56 | 8 | $uc_header[ucwords($key, '-')] = $value; |
|
57 | 4 | } |
|
58 | 8 | $server = array_merge($request->server, $new_header); |
|
59 | |||
60 | // swoole has changed all keys to lower case |
||
61 | 8 | $server = array_change_key_case($server, CASE_UPPER); |
|
62 | 8 | $request->server = $server; |
|
63 | 8 | $request->header = $uc_header; |
|
64 | 8 | return $request; |
|
65 | } |
||
66 | |||
67 | 8 | protected function handleStaticFile($request, $response) |
|
95 | |||
96 | 8 | public function endResponse($response, $content) |
|
105 | |||
106 | } |
||
107 |
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.