From: Vincent Vanwaelscappel Date: Tue, 22 Oct 2019 09:50:51 +0000 (+0200) Subject: wip #3158 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5709b2fc36fd736182899bd90bb39cea0dd03524;p=cubist_cms-back.git wip #3158 --- diff --git a/src/app/Console/Commands/LocaleCopy.php b/src/app/Console/Commands/LocaleCopy.php index b7e90e2..39ccb9b 100644 --- a/src/app/Console/Commands/LocaleCopy.php +++ b/src/app/Console/Commands/LocaleCopy.php @@ -24,8 +24,7 @@ class LocaleCopy extends CubistCommand public function handle() { - $from = $this->argument('from'); - $to = $this->argument('to'); + $this->call('backup:run'); @@ -37,6 +36,8 @@ class LocaleCopy extends CubistCommand */ protected function _copyModel($model) { - echo 'Copy locale of model ' . $model; + $from = $this->argument('from'); + $to = $this->argument('to'); + echo 'Copy locale of model ' . $model . ' from ' . $from . ' to ' . $to; } }