Skip to content

Commit

Permalink
调整
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Dec 26, 2024
1 parent 3e84ebf commit 0e161ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ http://localhost:8080
```php
Route::get('static/:path', function (string $path) {
$filename = public_path() . $path;
return new \think\swoole\response\File($filename);
return new \think\worker\response\File($filename);
})->pattern(['path' => '.*\.\w+$']);
```

Expand Down
4 changes: 2 additions & 2 deletions src/Sandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected function setInitialServices()
{
$app = $this->getBaseApp();

$services = $this->config->get('swoole.services', []);
$services = $this->config->get('worker.services', []);

foreach ($services as $service) {
if (class_exists($service) && !in_array($service, $this->services)) {
Expand All @@ -192,7 +192,7 @@ protected function setInitialResetters()
ResetPaginator::class,
];

$resetters = array_merge($resetters, $this->config->get('swoole.resetters', []));
$resetters = array_merge($resetters, $this->config->get('worker.resetters', []));

foreach ($resetters as $resetter) {
$resetterClass = $app->make($resetter);
Expand Down

0 comments on commit 0e161ff

Please sign in to comment.