From d0261fd1427d99458552b9ced1961c6162441d0b Mon Sep 17 00:00:00 2001 From: tsurkanovm Date: Mon, 26 Oct 2015 11:38:55 +0200 Subject: [PATCH] fixed namespace issue --- composer.json | 6 +++--- lib/Converter.php | 2 +- lib/ConverterInterface.php | 2 +- lib/CsvParser.php | 4 ++-- lib/DynamicFormHelper.php | 2 +- lib/Encoder.php | 2 +- lib/ObjectCreator.php | 2 +- lib/Parser.php | 2 +- lib/ParserHandler.php | 2 +- lib/TableParser.php | 2 +- lib/XlsxParser.php | 4 ++-- lib/XmlParser.php | 2 +- lib/YiiConverter.php | 2 +- lib/YiiMultiparser.php | 2 +- lib/YiiParserHandler.php | 2 +- lib/config.php | 2 +- 16 files changed, 20 insertions(+), 20 deletions(-) diff --git a/composer.json b/composer.json index 3b6c4fc..9db2ccf 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { "minimum-stability" : "dev", - "name": "artweb/yii-multiparser", + "name": "artweb/yii2-multiparser", "type": "library", "description": "This extension provides a Multiparser solution for Yii framework 2.0.", - "keywords": [ "yii", "parser", "csv", "xml" ], + "keywords": [ "yii2", "parser", "csv", "xml, xlsx" ], "homepage": "https://github.com/tsurkanovm/yii-multiparser.git", "license": "MIT", "authors": [ @@ -18,7 +18,7 @@ }, "autoload": { "psr-4": { - "artweb\\yii_multiparser\\": "" + "artweb\\yii2-multiparser\\lib": "" } } } diff --git a/lib/Converter.php b/lib/Converter.php index b4e9692..66289c9 100644 --- a/lib/Converter.php +++ b/lib/Converter.php @@ -6,7 +6,7 @@ * Time: 12:50 */ -namespace artweb\yii_multiparser; +namespace yii\multiparser; // класс который содержит преобразователи значений (фильтры) используемые при парсинге class Converter implements ConverterInterface diff --git a/lib/ConverterInterface.php b/lib/ConverterInterface.php index 2d55ab9..2fb22b8 100644 --- a/lib/ConverterInterface.php +++ b/lib/ConverterInterface.php @@ -6,7 +6,7 @@ * Time: 13:38 */ -namespace artweb\yii_multiparser; +namespace yii\multiparser; interface ConverterInterface { diff --git a/lib/CsvParser.php b/lib/CsvParser.php index 76946ef..7ca1b88 100644 --- a/lib/CsvParser.php +++ b/lib/CsvParser.php @@ -2,13 +2,13 @@ /** */ -namespace artweb\yii_multiparser; +namespace yii\multiparser; use common\components\CustomVarDamp; /** * Class CsvParser - * @package artweb\yii_multiparser + * @package yii\multiparser * @todo - перевести на анг. яз. */ class CsvParser extends TableParser diff --git a/lib/DynamicFormHelper.php b/lib/DynamicFormHelper.php index 47a0d84..4f337b1 100644 --- a/lib/DynamicFormHelper.php +++ b/lib/DynamicFormHelper.php @@ -6,7 +6,7 @@ * Time: 14:50 */ -namespace artweb\yii_multiparser; +namespace yii\multiparser; use yii\base\DynamicModel; use yii\grid\GridView; diff --git a/lib/Encoder.php b/lib/Encoder.php index a082765..1565ef3 100644 --- a/lib/Encoder.php +++ b/lib/Encoder.php @@ -6,7 +6,7 @@ * Time: 13:36 */ -namespace artweb\yii_multiparser; +namespace yii\multiparser; // @todo add comments class Encoder diff --git a/lib/ObjectCreator.php b/lib/ObjectCreator.php index 04995f7..ae426ab 100644 --- a/lib/ObjectCreator.php +++ b/lib/ObjectCreator.php @@ -6,7 +6,7 @@ * Time: 16:24 */ -namespace artweb\yii_multiparser; +namespace yii\multiparser; use common\components\CustomVarDamp; diff --git a/lib/Parser.php b/lib/Parser.php index 746e966..283c36f 100644 --- a/lib/Parser.php +++ b/lib/Parser.php @@ -6,7 +6,7 @@ * Time: 18:25 */ -namespace artweb\yii_multiparser; +namespace yii\multiparser; //@todo - заменить read на parse //@todo - xml - убрать из названий функций xml и array - это и так понятно diff --git a/lib/ParserHandler.php b/lib/ParserHandler.php index a4908ba..d94dda3 100644 --- a/lib/ParserHandler.php +++ b/lib/ParserHandler.php @@ -1,6 +1,6 @@ ['web' => - ['class' => 'artweb\yii_multiparser\CsvParser', + ['class' => 'yii\multiparser\CsvParser', 'auto_detect_first_line' => true, 'converter_conf' => [ "float" => 'PRICE', -- libgit2 0.21.4