Commit d0261fd1427d99458552b9ced1961c6162441d0b

Authored by Mihail
1 parent 9495d312

fixed namespace issue

composer.json
1 1 {
2 2 "minimum-stability" : "dev",
3   - "name": "artweb/yii-multiparser",
  3 + "name": "artweb/yii2-multiparser",
4 4 "type": "library",
5 5 "description": "This extension provides a Multiparser solution for Yii framework 2.0.",
6   - "keywords": [ "yii", "parser", "csv", "xml" ],
  6 + "keywords": [ "yii2", "parser", "csv", "xml, xlsx" ],
7 7 "homepage": "https://github.com/tsurkanovm/yii-multiparser.git",
8 8 "license": "MIT",
9 9 "authors": [
... ... @@ -18,7 +18,7 @@
18 18 },
19 19 "autoload": {
20 20 "psr-4": {
21   - "artweb\\yii_multiparser\\": ""
  21 + "artweb\\yii2-multiparser\\lib": ""
22 22 }
23 23 }
24 24 }
... ...
lib/Converter.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 12:50
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11 // класс который содержит преобразователи значений (фильтры) используемые при парсинге
12 12 class Converter implements ConverterInterface
... ...
lib/ConverterInterface.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 13:38
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11  
12 12 interface ConverterInterface {
... ...
lib/CsvParser.php
... ... @@ -2,13 +2,13 @@
2 2 /**
3 3  
4 4 */
5   -namespace artweb\yii_multiparser;
  5 +namespace yii\multiparser;
6 6 use common\components\CustomVarDamp;
7 7  
8 8  
9 9 /**
10 10 * Class CsvParser
11   - * @package artweb\yii_multiparser
  11 + * @package yii\multiparser
12 12 * @todo - перевести на анг. яз.
13 13 */
14 14 class CsvParser extends TableParser
... ...
lib/DynamicFormHelper.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 14:50
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11 use yii\base\DynamicModel;
12 12 use yii\grid\GridView;
... ...
lib/Encoder.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 13:36
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11 // @todo add comments
12 12 class Encoder
... ...
lib/ObjectCreator.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 16:24
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11  
12 12 use common\components\CustomVarDamp;
... ...
lib/Parser.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 18:25
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11 //@todo - заменить read на parse
12 12 //@todo - xml - убрать из названий функций xml и array - это и так понятно
... ...
lib/ParserHandler.php
1 1 <?php
2 2  
3   -namespace artweb\yii_multiparser;
  3 +namespace yii\multiparser;
4 4  
5 5 use common\components\CustomVarDamp;
6 6  
... ...
lib/TableParser.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 15:53
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11  
12 12 use common\components\CustomVarDamp;
... ...
lib/XlsxParser.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 15:44
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11  
12 12 use common\components\CustomVarDamp;
... ... @@ -14,7 +14,7 @@ use common\components\CustomVarDamp;
14 14  
15 15 /**
16 16 * Class XlsxParser
17   - * @package artweb\yii_multiparser
  17 + * @package yii\multiparser
18 18 */
19 19 class XlsxParser extends TableParser {
20 20  
... ...
lib/XmlParser.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 17:47
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11  
12 12 use common\components\CustomVarDamp;
... ...
lib/YiiConverter.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 15:56
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11 use common\components\CustomVarDamp;
12 12 use yii\base\Component;
... ...
lib/YiiMultiparser.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 15:56
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11 use common\components\CustomVarDamp;
12 12 use yii\base\Component;
... ...
lib/YiiParserHandler.php
... ... @@ -6,7 +6,7 @@
6 6 * Time: 15:53
7 7 */
8 8  
9   -namespace artweb\yii_multiparser;
  9 +namespace yii\multiparser;
10 10  
11 11  
12 12 use common\components\CustomVarDamp;
... ...
lib/config.php
... ... @@ -3,7 +3,7 @@ return
3 3 [
4 4 'csv' =>
5 5 ['web' =>
6   - ['class' => 'artweb\yii_multiparser\CsvParser',
  6 + ['class' => 'yii\multiparser\CsvParser',
7 7 'auto_detect_first_line' => true,
8 8 'converter_conf' => [
9 9 "float" => 'PRICE',
... ...