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 | 2 | return [ |
| 3 | 3 | 'csv' => |
| 4 | 4 | ['web' => |
| 5 | - ['class' => 'backend\components\parsers\CustomCsvParser', | |
| 5 | + ['class' => 'common\components\parsers\CustomCsvParser', | |
| 6 | 6 | 'auto_detect_first_line' => true, |
| 7 | - 'converter_conf' => ['class' => ' backend\components\parsers\CustomConverter', | |
| 7 | + 'converter_conf' => ['class' => ' common\components\parsers\CustomConverter', | |
| 8 | 8 | 'configuration' => ["string" => 'DESCR'],] |
| 9 | 9 | ], |
| 10 | 10 | 'console' => |
| 11 | - ['class' => 'backend\components\parsers\CustomCsvParser', | |
| 11 | + ['class' => 'common\components\parsers\CustomCsvParser', | |
| 12 | 12 | 'auto_detect_first_line' => true, |
| 13 | 13 | 'hasHeaderRow' => true, |
| 14 | - 'converter_conf' => ['class' => ' backend\components\parsers\CustomConverter', | |
| 14 | + 'converter_conf' => ['class' => ' common\components\parsers\CustomConverter', | |
| 15 | 15 | 'hasKey' => 1, |
| 16 | 16 | 'configuration' => ["string" => 'DESCR', |
| 17 | 17 | "float" => 'PRICE', | ... | ... |
common/config/main.php
| ... | ... | @@ -19,7 +19,7 @@ return [ |
| 19 | 19 | 'class' => 'yii\multiparser\YiiMultiparser', |
| 20 | 20 | 'configuration' => $mp_configuration, |
| 21 | 21 | 'as behavior' => [ |
| 22 | - 'class' => 'backend\components\parsers\CustomConverter', | |
| 22 | + 'class' => 'common\components\parsers\CustomConverter', | |
| 23 | 23 | ], |
| 24 | 24 | |
| 25 | 25 | ], | ... | ... |