Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Mar 11, 2020
1 parent 3cc714b commit 4f0f8cc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"name": "yiier/yii2-translate",
"description": "腾讯君翻译,腾讯 AI 翻译",
"type": "yii2-extension",
"keywords": [
"yii2",
"extension",
"translate"
],
"license": "BSD-4-Clause",
"authors": [
{
"name": "forecho",
"email": "caizhenghai@gmail.com"
"name": "yiier/yii2-translate",
"description": "腾讯翻译君翻译、百度翻译 、谷歌翻译(Google 翻译)",
"type": "yii2-extension",
"keywords": [
"yii2",
"extension",
"translate"
],
"license": "BSD-4-Clause",
"authors": [
{
"name": "forecho",
"email": "caizhenghai@gmail.com"
}
],
"require": {
"yiisoft/yii2": "~2.0.0",
"guzzlehttp/guzzle": "^6.3"
},
"autoload": {
"psr-4": {
"yiier\\translate\\": "src"
}
}
],
"require": {
"yiisoft/yii2": "~2.0.0",
"guzzlehttp/guzzle": "^6.3"
},
"autoload": {
"psr-4": {
"yiier\\translate\\": "src"
}
}
}
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function formatPlatformClassName($name)
protected function makePlatform($platform, $config)
{
if (!\class_exists($platform) || !\in_array(PlatformInterface::class, \class_implements($platform))) {
throw new InvalidArgumentException(\sprintf('Class "%s" is a invalid express platform.', $platform));
throw new InvalidArgumentException(\sprintf('Class "%s" is a invalid translate platform.', $platform));
}
return new $platform($config);
}
Expand Down

0 comments on commit 4f0f8cc

Please sign in to comment.