File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ http://localhost:8080
35
35
``` php
36
36
Route::get('static/:path', function (string $path) {
37
37
$filename = public_path() . $path;
38
- return new \think\swoole \response\File($filename);
38
+ return new \think\worker \response\File($filename);
39
39
})->pattern(['path' => '.*\.\w+$']);
40
40
```
41
41
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ protected function setInitialServices()
166
166
{
167
167
$ app = $ this ->getBaseApp ();
168
168
169
- $ services = $ this ->config ->get ('swoole .services ' , []);
169
+ $ services = $ this ->config ->get ('worker .services ' , []);
170
170
171
171
foreach ($ services as $ service ) {
172
172
if (class_exists ($ service ) && !in_array ($ service , $ this ->services )) {
@@ -192,7 +192,7 @@ protected function setInitialResetters()
192
192
ResetPaginator::class,
193
193
];
194
194
195
- $ resetters = array_merge ($ resetters , $ this ->config ->get ('swoole .resetters ' , []));
195
+ $ resetters = array_merge ($ resetters , $ this ->config ->get ('worker .resetters ' , []));
196
196
197
197
foreach ($ resetters as $ resetter ) {
198
198
$ resetterClass = $ app ->make ($ resetter );
You can’t perform that action at this time.
0 commit comments