| 12345678910111213141516171819 |
- <?php
- namespace think\swoole\resetters;
- use think\Container;
- use think\swoole\Sandbox;
- use think\swoole\contract\ResetterInterface;
- class ResetConfig implements ResetterInterface
- {
- public function handle(Container $app, Sandbox $sandbox)
- {
- $app->instance('config', clone $sandbox->getConfig());
- return $app;
- }
- }
|