| 
17 | 17 |         'public_path' => base_path('public'),  | 
18 | 18 |         // Determine if to use swoole to respond request for static files  | 
19 | 19 |         'handle_static_files' => env('SWOOLE_HANDLE_STATIC', true),  | 
 | 20 | +        // You must add --enable-openssl while compiling Swoole  | 
 | 21 | +        // Put `SWOOLE_SOCK_TCP | SWOOLE_SSL` if you want to enable SSL  | 
 | 22 | +        'socket_type' => SWOOLE_SOCK_TCP,  | 
20 | 23 |         'options' => [  | 
21 | 24 |             'pid_file' => env('SWOOLE_HTTP_PID_FILE', base_path('storage/logs/swoole_http.pid')),  | 
22 | 25 |             'log_file' => env('SWOOLE_HTTP_LOG_FILE', base_path('storage/logs/swoole_http.log')),  | 
 | 
57 | 60 |     */  | 
58 | 61 |     'ob_output' => env('SWOOLE_OB_OUTPUT', true),  | 
59 | 62 | 
 
  | 
 | 63 | +    /*  | 
 | 64 | +    |--------------------------------------------------------------------------  | 
 | 65 | +    | Pre-resolved instances here will be resolved when sandbox created.  | 
 | 66 | +    |--------------------------------------------------------------------------  | 
 | 67 | +    */  | 
 | 68 | +    'pre_resolved' => [  | 
 | 69 | +        'view', 'files', 'session', 'session.store', 'routes',  | 
 | 70 | +        'db', 'db.factory', 'cache', 'cache.store', 'config', 'cookie',  | 
 | 71 | +        'encrypter', 'hash', 'router', 'translator', 'url', 'log',  | 
 | 72 | +    ],  | 
 | 73 | + | 
60 | 74 |     /*  | 
61 | 75 |     |--------------------------------------------------------------------------  | 
62 | 76 |     | Instances here will be cleared on every request.  | 
 | 
0 commit comments