Fixing CLI issue not having the translation repository bound

parent 28bed628
...@@ -12,7 +12,7 @@ class AsgardServiceProvider extends ServiceProvider ...@@ -12,7 +12,7 @@ class AsgardServiceProvider extends ServiceProvider
{ {
public function register() public function register()
{ {
if ($this->app->runningInConsole() === false && class_exists(TranslationServiceProvider::class)) { if (class_exists(TranslationServiceProvider::class)) {
$this->app->register(TranslationServiceProvider::class); $this->app->register(TranslationServiceProvider::class);
} }
......
url: https://github.com/AsgardCms/Platform url: https://github.com/AsgardCms/Platform
versions: versions:
"2.5.2":
changed:
- Fixing CLI issue not having the translation repository bound
"2.5.1": "2.5.1":
changed: changed:
- Add missing <code>id</code> attribute to editor's textarea - Add missing <code>id</code> attribute to editor's textarea
......
...@@ -49,6 +49,9 @@ class TranslationServiceProvider extends ServiceProvider ...@@ -49,6 +49,9 @@ class TranslationServiceProvider extends ServiceProvider
public function boot() public function boot()
{ {
if ($this->app->runningInConsole() === true) {
return;
}
$this->publishConfig('translation', 'config'); $this->publishConfig('translation', 'config');
$this->publishConfig('translation', 'permissions'); $this->publishConfig('translation', 'permissions');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment