From eef979ec8eb12274b7166d6661b615fd8683fb7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 18 Aug 2021 08:47:52 +0200 Subject: [PATCH] update generate client to remove copy translations --- app/Console/Commands/GenerateCrmClient.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/Console/Commands/GenerateCrmClient.php b/app/Console/Commands/GenerateCrmClient.php index 8e182d8..73446fc 100644 --- a/app/Console/Commands/GenerateCrmClient.php +++ b/app/Console/Commands/GenerateCrmClient.php @@ -43,7 +43,6 @@ class GenerateCrmClient extends Command { $this->copyEnums(); $this->copyExceptions(); - $this->copyTranslations(); $this->copyRoutesList(); $this->copyApiConfigInfo(); } @@ -119,18 +118,6 @@ class GenerateCrmClient extends Command } } - private function copyTranslations() - { - $this->info('Copy Translations'); - $rootTarget = app_path('../' . self::TARGET . '/..'); - $source = \resource_path('lang/en/validation.php'); - $dest = "$rootTarget/resources/lang/en/validation.php"; - if (File::exists($dest)) { - File::delete($dest); - } - File::copy($source, $dest); - } - /** * Copy Classes to specified folder *