From 9ad78536b664bae129ba168632dd8edad534f5c0 Mon Sep 17 00:00:00 2001 From: Mihail Date: Tue, 6 Oct 2015 16:56:43 +0300 Subject: [PATCH] finish with console csv --- common/components/parsers/config.php | 8 ++++---- common/config/main.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/components/parsers/config.php b/common/components/parsers/config.php index ba758eb..bf0ffc5 100644 --- a/common/components/parsers/config.php +++ b/common/components/parsers/config.php @@ -2,16 +2,16 @@ return [ 'csv' => ['web' => - ['class' => 'backend\components\parsers\CustomCsvParser', + ['class' => 'common\components\parsers\CustomCsvParser', 'auto_detect_first_line' => true, - 'converter_conf' => ['class' => ' backend\components\parsers\CustomConverter', + 'converter_conf' => ['class' => ' common\components\parsers\CustomConverter', 'configuration' => ["string" => 'DESCR'],] ], 'console' => - ['class' => 'backend\components\parsers\CustomCsvParser', + ['class' => 'common\components\parsers\CustomCsvParser', 'auto_detect_first_line' => true, 'hasHeaderRow' => true, - 'converter_conf' => ['class' => ' backend\components\parsers\CustomConverter', + 'converter_conf' => ['class' => ' common\components\parsers\CustomConverter', 'hasKey' => 1, 'configuration' => ["string" => 'DESCR', "float" => 'PRICE', diff --git a/common/config/main.php b/common/config/main.php index bb448b8..42035f7 100644 --- a/common/config/main.php +++ b/common/config/main.php @@ -19,7 +19,7 @@ return [ 'class' => 'yii\multiparser\YiiMultiparser', 'configuration' => $mp_configuration, 'as behavior' => [ - 'class' => 'backend\components\parsers\CustomConverter', + 'class' => 'common\components\parsers\CustomConverter', ], ], -- libgit2 0.21.4