Commit 2df6295d147e1bf9a889040bd303bd153bd1b819
1 parent
d3d52df7
finish with console csv
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
common/components/parsers/config.php
| @@ -2,16 +2,16 @@ | @@ -2,16 +2,16 @@ | ||
| 2 | return [ | 2 | return [ |
| 3 | 'csv' => | 3 | 'csv' => |
| 4 | ['web' => | 4 | ['web' => |
| 5 | - ['class' => 'backend\components\parsers\CustomCsvParser', | 5 | + ['class' => 'common\components\parsers\CustomCsvParser', |
| 6 | 'auto_detect_first_line' => true, | 6 | 'auto_detect_first_line' => true, |
| 7 | - 'converter_conf' => ['class' => ' backend\components\parsers\CustomConverter', | 7 | + 'converter_conf' => ['class' => ' common\components\parsers\CustomConverter', |
| 8 | 'configuration' => ["string" => 'DESCR'],] | 8 | 'configuration' => ["string" => 'DESCR'],] |
| 9 | ], | 9 | ], |
| 10 | 'console' => | 10 | 'console' => |
| 11 | - ['class' => 'backend\components\parsers\CustomCsvParser', | 11 | + ['class' => 'common\components\parsers\CustomCsvParser', |
| 12 | 'auto_detect_first_line' => true, | 12 | 'auto_detect_first_line' => true, |
| 13 | 'hasHeaderRow' => true, | 13 | 'hasHeaderRow' => true, |
| 14 | - 'converter_conf' => ['class' => ' backend\components\parsers\CustomConverter', | 14 | + 'converter_conf' => ['class' => ' common\components\parsers\CustomConverter', |
| 15 | 'hasKey' => 1, | 15 | 'hasKey' => 1, |
| 16 | 'configuration' => ["string" => 'DESCR', | 16 | 'configuration' => ["string" => 'DESCR', |
| 17 | "float" => 'PRICE', | 17 | "float" => 'PRICE', |
common/config/main.php
| @@ -19,7 +19,7 @@ return [ | @@ -19,7 +19,7 @@ return [ | ||
| 19 | 'class' => 'yii\multiparser\YiiMultiparser', | 19 | 'class' => 'yii\multiparser\YiiMultiparser', |
| 20 | 'configuration' => $mp_configuration, | 20 | 'configuration' => $mp_configuration, |
| 21 | 'as behavior' => [ | 21 | 'as behavior' => [ |
| 22 | - 'class' => 'backend\components\parsers\CustomConverter', | 22 | + 'class' => 'common\components\parsers\CustomConverter', |
| 23 | ], | 23 | ], |
| 24 | 24 | ||
| 25 | ], | 25 | ], |