@@ -37,7 +37,7 @@ | |||
*/ | |||
use common\helpers\GlobalParam; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Feature; | |||
use common\logic\User\User\Module\UserModule; | |||
$producerModule = $this->getProducerModule(); |
@@ -40,8 +40,8 @@ use common\helpers\Dropdown; | |||
use common\helpers\GlobalParam; | |||
use common\logic\Distribution\Distribution\Module\DistributionModule; | |||
use common\logic\Distribution\Distribution\Service\ExportManager; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Module\FeatureModule; | |||
use common\logic\Feature\Feature\Feature; | |||
use common\logic\Feature\Feature\FeatureModule; | |||
use common\logic\User\User\Module\UserModule; | |||
use common\logic\User\UserGroup\Module\UserGroupModule; | |||
use yii\helpers\Html; |
@@ -16,7 +16,6 @@ class BusinessLogic | |||
{ | |||
return [ | |||
$this->getFeatureModule(), | |||
$this->getFeatureProducerModule(), | |||
$this->getUnitModule(), | |||
$this->getTaxRateModule(), | |||
$this->getUserUserGroupModule(), |
@@ -11,8 +11,7 @@ use common\logic\Document\DeliveryNote\Module\DeliveryNoteModule; | |||
use common\logic\Document\Document\Module\DocumentModule; | |||
use common\logic\Document\Invoice\Module\InvoiceModule; | |||
use common\logic\Document\Quotation\Module\QuotationModule; | |||
use common\logic\Feature\Feature\Module\FeatureModule; | |||
use common\logic\Feature\FeatureProducer\Module\FeatureProducerModule; | |||
use common\logic\Feature\Feature\FeatureModule; | |||
use common\logic\Opinion\Module\OpinionModule; | |||
use common\logic\Order\Order\Module\OrderModule; | |||
use common\logic\Order\ProductOrder\Module\ProductOrderModule; | |||
@@ -191,9 +190,4 @@ trait BusinessLogicTrait | |||
{ | |||
return FeatureModule::getInstance(); | |||
} | |||
public function getFeatureProducerModule(): FeatureProducerModule | |||
{ | |||
return FeatureProducerModule::getInstance(); | |||
} | |||
} |
@@ -4,9 +4,9 @@ namespace common\logic\Distribution\Distribution\Export; | |||
use common\logic\AbstractGenerator; | |||
use common\logic\Distribution\Distribution\Model\Distribution; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Service\FeatureChecker; | |||
use common\logic\Feature\Feature\Service\FeatureManager; | |||
use common\logic\Feature\Feature\Feature; | |||
use common\logic\Feature\Feature\FeatureChecker; | |||
use common\logic\Feature\Feature\FeatureManager; | |||
use common\logic\Order\Order\Model\Order; | |||
use common\logic\Order\Order\Repository\OrderRepository; | |||
use common\logic\Order\Order\Service\OrderSolver; |
@@ -36,12 +36,11 @@ | |||
* termes. | |||
*/ | |||
namespace common\logic\Feature\Feature\Model; | |||
namespace common\logic\Feature\Feature; | |||
use common\components\ActiveRecordCommon; | |||
use common\logic\Feature\FeatureProducer\Model\FeatureProducer; | |||
use common\logic\Feature\FeatureProducer\FeatureProducer; | |||
use yii\db\ActiveQuery; | |||
use yii\db\Schema; | |||
class Feature extends ActiveRecordCommon | |||
{ |
@@ -1,10 +1,8 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Service; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractBuilder; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Repository\FeatureRepository; | |||
class FeatureBuilder extends AbstractBuilder | |||
{ |
@@ -1,10 +1,9 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Service; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractChecker; | |||
use common\logic\Feature\Feature\Repository\FeatureRepository; | |||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||
use common\logic\Feature\FeatureProducer\FeatureProducerRepository; | |||
use yii\base\ErrorException; | |||
class FeatureChecker extends AbstractChecker |
@@ -1,9 +1,8 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Service; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractDefinition; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
class FeatureDefinition extends AbstractDefinition | |||
{ |
@@ -1,6 +1,6 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Service; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractManager; | |||
@@ -1,10 +1,9 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Service; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractManager; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerBuilder; | |||
use common\logic\Feature\FeatureProducer\FeatureProducerBuilder; | |||
class FeatureManager extends AbstractManager | |||
{ |
@@ -1,14 +1,8 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Module; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractModule; | |||
use common\logic\Feature\Feature\Repository\FeatureRepository; | |||
use common\logic\Feature\Feature\Service\FeatureBuilder; | |||
use common\logic\Feature\Feature\Service\FeatureChecker; | |||
use common\logic\Feature\Feature\Service\FeatureDefinition; | |||
use common\logic\Feature\Feature\Service\FeatureImporter; | |||
use common\logic\Feature\Feature\Service\FeatureManager; | |||
class FeatureModule extends AbstractModule | |||
{ |
@@ -1,9 +1,8 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Repository; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractRepository; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
class FeatureRepository extends AbstractRepository | |||
{ |
@@ -1,9 +1,8 @@ | |||
<?php | |||
namespace common\logic\Feature\Feature\Repository; | |||
namespace common\logic\Feature\Feature; | |||
use common\logic\AbstractRepositoryQuery; | |||
use common\logic\Feature\Feature\Service\FeatureDefinition; | |||
class FeatureRepositoryQuery extends AbstractRepositoryQuery | |||
{ |
@@ -36,10 +36,10 @@ | |||
* termes. | |||
*/ | |||
namespace common\logic\Feature\FeatureProducer\Model; | |||
namespace common\logic\Feature\FeatureProducer; | |||
use common\components\ActiveRecordCommon; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Feature; | |||
use common\logic\Producer\Producer\Model\Producer; | |||
use yii\db\ActiveQuery; | |||
@@ -1,12 +1,9 @@ | |||
<?php | |||
namespace common\logic\Feature\FeatureProducer\Service; | |||
namespace common\logic\Feature\FeatureProducer; | |||
use common\logic\AbstractBuilder; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\FeatureProducer\Model\FeatureProducer; | |||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||
use common\logic\Producer\Producer\Model\Producer; | |||
use common\logic\Feature\Feature\Feature; | |||
class FeatureProducerBuilder extends AbstractBuilder | |||
{ |
@@ -1,10 +1,8 @@ | |||
<?php | |||
namespace common\logic\Feature\FeatureProducer\Service; | |||
namespace common\logic\Feature\FeatureProducer; | |||
use common\logic\AbstractDefinition; | |||
use common\logic\Feature\FeatureProducer\Model\FeatureProducer; | |||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||
class FeatureProducerDefinition extends AbstractDefinition | |||
{ |
@@ -1,10 +1,9 @@ | |||
<?php | |||
namespace common\logic\Feature\FeatureProducer\Repository; | |||
namespace common\logic\Feature\FeatureProducer; | |||
use common\logic\AbstractRepository; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Producer\Producer\Model\Producer; | |||
use common\logic\Feature\Feature\Feature; | |||
class FeatureProducerRepository extends AbstractRepository | |||
{ |
@@ -1,10 +1,9 @@ | |||
<?php | |||
namespace common\logic\Feature\FeatureProducer\Repository; | |||
namespace common\logic\Feature\FeatureProducer; | |||
use common\logic\AbstractRepositoryQuery; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerDefinition; | |||
use common\logic\Feature\Feature\Feature; | |||
class FeatureProducerRepositoryQuery extends AbstractRepositoryQuery | |||
{ |
@@ -1,35 +0,0 @@ | |||
<?php | |||
namespace common\logic\Feature\FeatureProducer\Module; | |||
use common\logic\AbstractModule; | |||
use common\logic\Feature\FeatureProducer\Repository\FeatureProducerRepository; | |||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerBuilder; | |||
use common\logic\Feature\FeatureProducer\Service\FeatureProducerDefinition; | |||
class FeatureProducerModule extends AbstractModule | |||
{ | |||
public function getServices(): array | |||
{ | |||
return [ | |||
FeatureProducerDefinition::class, | |||
FeatureProducerRepository::class, | |||
FeatureProducerBuilder::class | |||
]; | |||
} | |||
public function getDefinition(): FeatureProducerDefinition | |||
{ | |||
return FeatureProducerDefinition::getInstance(); | |||
} | |||
public function getRepository(): FeatureProducerRepository | |||
{ | |||
return FeatureProducerRepository::getInstance(); | |||
} | |||
public function getBuilder(): FeatureProducerBuilder | |||
{ | |||
return FeatureProducerBuilder::getInstance(); | |||
} | |||
} |
@@ -2,7 +2,7 @@ | |||
namespace console\commands; | |||
use common\logic\Feature\Feature\Module\FeatureModule; | |||
use common\logic\Feature\Feature\FeatureModule; | |||
use yii\console\Controller; | |||
class ImportFeaturesController extends Controller |
@@ -40,7 +40,7 @@ namespace producer\controllers; | |||
use common\helpers\GlobalParam; | |||
use common\helpers\MeanPayment; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Feature; | |||
use common\logic\Payment\Model\Payment; | |||
use producer\models\CreditForm; | |||
use yii\filters\VerbFilter; |
@@ -40,7 +40,7 @@ namespace producer\controllers; | |||
use common\forms\ContactForm; | |||
use common\helpers\GlobalParam; | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Feature; | |||
use common\logic\Product\Product\Model\Product; | |||
use yii\data\ActiveDataProvider; | |||
use yii\helpers\Html; |
@@ -36,8 +36,8 @@ | |||
* termes. | |||
*/ | |||
use common\logic\Feature\Feature\Model\Feature; | |||
use common\logic\Feature\Feature\Module\FeatureModule; | |||
use common\logic\Feature\Feature\Feature; | |||
use common\logic\Feature\Feature\FeatureModule; | |||
use common\logic\Payment\Module\PaymentModule; | |||
use yii\grid\GridView; | |||