File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ http://localhost:8080
3535``` php
3636Route::get('static/:path', function (string $path) {
3737 $filename = public_path() . $path;
38- return new \think\swoole \response\File($filename);
38+ return new \think\worker \response\File($filename);
3939})->pattern(['path' => '.*\.\w+$']);
4040```
4141
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ protected function setInitialServices()
166166 {
167167 $ app = $ this ->getBaseApp ();
168168
169- $ services = $ this ->config ->get ('swoole .services ' , []);
169+ $ services = $ this ->config ->get ('worker .services ' , []);
170170
171171 foreach ($ services as $ service ) {
172172 if (class_exists ($ service ) && !in_array ($ service , $ this ->services )) {
@@ -192,7 +192,7 @@ protected function setInitialResetters()
192192 ResetPaginator::class,
193193 ];
194194
195- $ resetters = array_merge ($ resetters , $ this ->config ->get ('swoole .resetters ' , []));
195+ $ resetters = array_merge ($ resetters , $ this ->config ->get ('worker .resetters ' , []));
196196
197197 foreach ($ resetters as $ resetter ) {
198198 $ resetterClass = $ app ->make ($ resetter );
You can’t perform that action at this time.
0 commit comments