We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d30077b commit bccd7aaCopy full SHA for bccd7aa
README.md
@@ -116,13 +116,18 @@ use EasySwoole\Http\Response;
116
use Hyperf\Config\Config;
117
use Hyperf\Contract\ConfigInterface;
118
use Hyperf\Pimple\ContainerFactory;
119
+use App\Provider\TranslatorProvider;
120
+use App\Provider\TranslatorLoaderProvider;
121
122
class EasySwooleEvent implements Event
123
{
124
public static function initialize()
125
126
date_default_timezone_set('Asia/Shanghai');
- $container = (new ContainerFactory())();
127
+ $container = (new ContainerFactory([
128
+ TranslatorProvider::class,
129
+ TranslatorLoaderProvider::class,
130
+ ]))();
131
$container->set(ConfigInterface::class, new Config([
132
'translation' => [
133
'locale' => 'zh_CN',
0 commit comments