소스 검색

refactor(eav): 更新命名空间和类名

- 将命名空间从 SixShop\eav 修改为 SixShop\Eav
- 更新所有相关文件和类的命名空间- 修改 composer.json 中的自动加载配置
runphp 7 달 전
부모
커밋
4c9a9ff416

+ 2 - 2
composer.json

@@ -19,13 +19,13 @@
   "license": "MIT",
   "autoload": {
     "psr-4": {
-      "SixShop\\eav\\": "src"
+      "SixShop\\Eav\\": "src"
     }
   },
   "extra": {
     "sixshop": {
       "id": "eav",
-      "class": "SixShop\\eav\\Extension"
+      "class": "SixShop\\Eav\\Extension"
     }
   }
 }

+ 1 - 1
route/admin.php

@@ -1,7 +1,7 @@
 <?php
 declare(strict_types=1);
 
-use SixShop\Extension\eav\Controller\{AttributeOptionController,
+use SixShop\Eav\Controller\{AttributeOptionController,
     EntityAttributeController,
     EntityTypeController,
     ValueController};

+ 2 - 2
src/Controller/AttributeOptionController.php

@@ -1,10 +1,10 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Controller;
+namespace SixShop\Eav\Controller;
 
 use SixShop\Core\Helper;
 use SixShop\Core\Request;
-use SixShop\eav\Entity\EvaAttributeOptionEntity;
+use SixShop\Eav\Entity\EvaAttributeOptionEntity;
 use think\Response;
 use think\response\Json;
 

+ 2 - 2
src/Controller/EntityAttributeController.php

@@ -1,10 +1,10 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Controller;
+namespace SixShop\Eav\Controller;
 
 use SixShop\Core\Helper;
 use SixShop\Core\Request;
-use SixShop\eav\Entity\EvaAttributeEntity;
+use SixShop\Eav\Entity\EvaAttributeEntity;
 use think\Response;
 
 class EntityAttributeController

+ 2 - 2
src/Controller/EntityTypeController.php

@@ -1,10 +1,10 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Controller;
+namespace SixShop\Eav\Controller;
 
 use SixShop\Core\Helper;
 use SixShop\Core\Request;
-use SixShop\eav\Entity\EvaEntityTypeEntity;
+use SixShop\Eav\Entity\EvaEntityTypeEntity;
 use think\Response;
 
 class EntityTypeController

+ 3 - 3
src/Controller/ValueController.php

@@ -1,12 +1,12 @@
 <?php
 declare(strict_types=1);
 
-namespace SixShop\eav\Controller;
+namespace SixShop\Eav\Controller;
 
 use SixShop\Core\Helper;
 use SixShop\Core\Request;
-use SixShop\eav\Entity\EvaValueEntity;
-use SixShop\eav\Model\EvaAttributeModel;
+use SixShop\Eav\Entity\EvaValueEntity;
+use SixShop\Eav\Model\EvaAttributeModel;
 use think\Response;
 
 class ValueController

+ 1 - 1
src/Entity/EvaAttributeEntity.php

@@ -1,6 +1,6 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Entity;
+namespace SixShop\Eav\Entity;
 
 use SixShop\Core\Entity\BaseEntity;
 

+ 1 - 1
src/Entity/EvaAttributeOptionEntity.php

@@ -1,6 +1,6 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Entity;
+namespace SixShop\Eav\Entity;
 
 use SixShop\Core\Entity\BaseEntity;
 

+ 2 - 2
src/Entity/EvaEntityTypeEntity.php

@@ -1,8 +1,8 @@
 <?php
 
-namespace SixShop\eav\Entity;
+namespace SixShop\Eav\Entity;
 
-use SixShop\eav\Model\EvaEntityTypeModel;
+use SixShop\Eav\Model\EvaEntityTypeModel;
 use think\Entity;
 
 class EvaEntityTypeEntity extends Entity

+ 1 - 1
src/Entity/EvaValueEntity.php

@@ -1,7 +1,7 @@
 <?php
 declare(strict_types=1);
 
-namespace SixShop\eav\Entity;
+namespace SixShop\Eav\Entity;
 
 use SixShop\Core\Entity\BaseEntity;
 

+ 1 - 1
src/Extension.php

@@ -1,7 +1,7 @@
 <?php
 declare(strict_types=1);
 
-namespace SixShop\eav;
+namespace SixShop\Eav;
 
 
 use SixShop\Core\ExtensionAbstract;

+ 2 - 2
src/Model/EvaAttributeModel.php

@@ -1,12 +1,12 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Model;
+namespace SixShop\Eav\Model;
 
 use think\Model;
 use think\model\concern\SoftDelete;
 
 /**
- * Class SixShop\eav\Model\ExtensionEvaAttributeModel
+ * Class SixShop\Eav\Model\ExtensionEvaAttributeModel
  *
  * @property bool $is_required 是否必填
  * @property int $entity_type_id 关联实体类型

+ 2 - 2
src/Model/EvaAttributeOptionModel.php

@@ -1,13 +1,13 @@
 <?php
 declare(strict_types=1);
 
-namespace SixShop\eav\Model;
+namespace SixShop\Eav\Model;
 
 use think\Model;
 use think\model\concern\SoftDelete;
 
 /**
- * Class SixShop\eav\Model\ExtensionEvaAttributeOptionModel
+ * Class SixShop\Eav\Model\ExtensionEvaAttributeOptionModel
  *
  * @property int $attribute_id 属性ID
  * @property int $id

+ 2 - 2
src/Model/EvaEntityTypeModel.php

@@ -1,12 +1,12 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Model;
+namespace SixShop\Eav\Model;
 
 use think\Model;
 use think\model\concern\SoftDelete;
 
 /**
- * Class SixShop\eav\Model\ExtensionEvaEntityTypeModel
+ * Class SixShop\Eav\Model\ExtensionEvaEntityTypeModel
  *
  * @property int $id
  * @property string $create_time

+ 2 - 2
src/Model/EvaValueModel.php

@@ -1,12 +1,12 @@
 <?php
 declare(strict_types=1);
-namespace SixShop\eav\Model;
+namespace SixShop\Eav\Model;
 
 use think\Model;
 use think\model\concern\SoftDelete;
 
 /**
- * Class SixShop\eav\Model\ExtensionEvaValueModel
+ * Class SixShop\Eav\Model\ExtensionEvaValueModel
  *
  * @property float $value_decimal 数值值
  * @property int $attribute_id 属性ID