Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jul 17, 2023
1 parent 65888c8 commit 8441500
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ php bin/hyperf.php vendor:publish xmo/mine-translatable
|
*/
'rule_factory' => [
'format' => \HyperfExt\Translatable\Validation\RuleFactory::FORMAT_ARRAY,
'format' => \Mine\Translatable\Validation\RuleFactory::FORMAT_ARRAY,
'prefix' => '%',
'suffix' => '%',
],
Expand Down Expand Up @@ -224,8 +224,8 @@ class CreatePostTranslationsTable extends Migration
Post.php
```php
use Hyperf\Database\Model\Model;
use HyperfExt\Translatable\Contracts\TranslatableInterface;
use HyperfExt\Translatable\Translatable;
use Mine\Translatable\Contracts\TranslatableInterface;
use Mine\Translatable\Translatable;

class Post extends Model implements TranslatableInterface
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"extra": {
"hyperf": {
"config": "HyperfExt\\Translatable\\ConfigProvider"
"config": "Mine\\Translatable\\ConfigProvider"
}
}
}
2 changes: 1 addition & 1 deletion publish/translatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
|
*/
'rule_factory' => [
'format' => \HyperfExt\Translatable\Validation\RuleFactory::FORMAT_ARRAY,
'format' => \Mine\Translatable\Validation\RuleFactory::FORMAT_ARRAY,
'prefix' => '%',
'suffix' => '%',
],
Expand Down
2 changes: 1 addition & 1 deletion src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __invoke(): array
'publish' => [
[
'id' => 'config',
'description' => 'The config for xmo/translatable.',
'description' => 'The config for xmo/mine-translatable.',
'source' => __DIR__ . '/../publish/translatable.php',
'destination' => BASE_PATH . '/config/autoload/translatable.php',
],
Expand Down
2 changes: 1 addition & 1 deletion src/Translatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function isDeleteTranslationsCascade(): bool
return self::$deleteTranslationsCascade;
}

public function attributesToArray()
public function attributesToArray(): array
{
$attributes = parent::attributesToArray();

Expand Down
2 changes: 1 addition & 1 deletion src/Validation/RuleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class RuleFactory
protected $locales;

/**
* @var \HyperfExt\Translatable\Contracts\LocalesInterface
* @var \Mine\Translatable\Contracts\LocalesInterface
*/
protected $helper;

Expand Down

0 comments on commit 8441500

Please sign in to comment.