Skip to content

Commit

Permalink
refacto(tool)
Browse files Browse the repository at this point in the history
  • Loading branch information
untek-developer committed Jun 23, 2019
1 parent 4b1614b commit dbd041c
Show file tree
Hide file tree
Showing 94 changed files with 224 additions and 224 deletions.
4 changes: 2 additions & 2 deletions bin/bin
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use yii2rails\domain\helpers\DomainHelper;
use yii2rails\extension\console\helpers\BinConsoleHelper;

DomainHelper::defineDomains([
'vendor' => 'yii2module\vendor\domain\Domain',
'vendor' => 'yii2tool\vendor\domain\Domain',
'package' => 'yii2rails\extension\package\domain\Domain',
]);

$controllerNamespace = 'yii2module\\vendor\\console\\bin';
$controllerNamespace = 'yii2tool\\vendor\\console\\bin';
$console = new BinConsoleHelper($controllerNamespace);
$console->init();
4 changes: 2 additions & 2 deletions guide/ru/manager-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ return [
'modules' => [
// ...
'vendor' => [
'class' => 'yii2module\vendor\console\Module',
'class' => 'yii2tool\vendor\console\Module',
],
// ...
],
Expand All @@ -29,7 +29,7 @@ return [
// ...
'vendor' => [
'class' => 'yii2rails\domain\Domain',
'path' => 'yii2module\vendor\domain',
'path' => 'yii2tool\vendor\domain',
'repositories' => [
'generator' => Driver::FILE,
],
Expand Down
4 changes: 2 additions & 2 deletions src/admin/Module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\admin;
namespace yii2tool\vendor\admin;

use yii\base\Module as YiiModule;
use yii2rails\domain\helpers\DomainHelper;
Expand All @@ -15,7 +15,7 @@ class Module extends YiiModule

public function init() {
DomainHelper::forgeDomains([
'vendor' => 'yii2module\vendor\domain\Domain',
'vendor' => 'yii2tool\vendor\domain\Domain',
]);
parent::init();
}
Expand Down
4 changes: 2 additions & 2 deletions src/admin/controllers/GitController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\admin\controllers;
namespace yii2tool\vendor\admin\controllers;

use Yii;
use yii\data\ArrayDataProvider;
Expand All @@ -9,7 +9,7 @@
use yii2rails\domain\web\ActiveController as Controller;
use yii2rails\extension\web\helpers\Behavior;
use yii2lab\navigation\domain\widgets\Alert;
use yii2module\vendor\domain\enums\VendorPermissionEnum;
use yii2tool\vendor\domain\enums\VendorPermissionEnum;

class GitController extends Controller {

Expand Down
10 changes: 5 additions & 5 deletions src/admin/controllers/InfoController.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace yii2module\vendor\admin\controllers;
namespace yii2tool\vendor\admin\controllers;

use Yii;
use yii\data\ArrayDataProvider;
use yii2rails\domain\data\Query;
use yii2rails\domain\web\ActiveController as Controller;
use yii2rails\extension\web\helpers\Behavior;
use yii2module\vendor\domain\entities\CommitEntity;
use yii2module\vendor\domain\entities\RepoEntity;
use yii2module\vendor\domain\enums\VendorPermissionEnum;
use yii2module\vendor\domain\helpers\VersionHelper;
use yii2tool\vendor\domain\entities\CommitEntity;
use yii2tool\vendor\domain\entities\RepoEntity;
use yii2tool\vendor\domain\enums\VendorPermissionEnum;
use yii2tool\vendor\domain\helpers\VersionHelper;

class InfoController extends Controller {

Expand Down
4 changes: 2 additions & 2 deletions src/admin/helpers/Menu.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace yii2module\vendor\admin\helpers;
namespace yii2tool\vendor\admin\helpers;

use yii2rails\extension\menu\interfaces\MenuInterface;
use yii2rails\extension\common\helpers\ModuleHelper;
use yii2module\vendor\domain\enums\VendorPermissionEnum;
use yii2tool\vendor\domain\enums\VendorPermissionEnum;

class Menu implements MenuInterface {

Expand Down
2 changes: 1 addition & 1 deletion src/admin/views/info/view.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/* @var $this yii\web\View
* @var $entity \yii2module\vendor\domain\entities\RepoEntity
* @var $entity \yii2tool\vendor\domain\entities\RepoEntity
* @var $versionVariations array
*/
use yii2rails\extension\clipboardJs\ClipboardJsAsset;
Expand Down
8 changes: 4 additions & 4 deletions src/admin/views/info/view/_commitTable.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

/* @var $this yii\web\View
* @var $entity \yii2module\vendor\domain\entities\RepoEntity
* @var $commits \yii2module\vendor\domain\entities\CommitEntity[]
* @var $entity \yii2tool\vendor\domain\entities\RepoEntity
* @var $commits \yii2tool\vendor\domain\entities\CommitEntity[]
*/

use yii\data\ArrayDataProvider;
use yii\grid\GridView;
use yii2rails\extension\yii\helpers\Html;
use yii2module\vendor\domain\entities\CommitEntity;
use yii2module\vendor\domain\helpers\VersionHelper;
use yii2tool\vendor\domain\entities\CommitEntity;
use yii2tool\vendor\domain\helpers\VersionHelper;

$columns = [
[
Expand Down
2 changes: 1 addition & 1 deletion src/admin/views/info/view/commit.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/* @var $this yii\web\View
* @var $entity \yii2module\vendor\domain\entities\RepoEntity
* @var $entity \yii2tool\vendor\domain\entities\RepoEntity
*/

?>
Expand Down
4 changes: 2 additions & 2 deletions src/admin/views/info/view/release.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

/* @var $this yii\web\View
* @var $entity \yii2module\vendor\domain\entities\RepoEntity
* @var $entity \yii2tool\vendor\domain\entities\RepoEntity
* @var $versionVariations array
*/

use yii2module\vendor\domain\helpers\VersionHelper;
use yii2tool\vendor\domain\helpers\VersionHelper;
use yii2rails\extension\widget\helpers\WidgetHelper;

$params = $entity->toArray();
Expand Down
4 changes: 2 additions & 2 deletions src/console/Module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\console;
namespace yii2tool\vendor\console;

use yii\base\Module as YiiModule;
use yii2rails\domain\helpers\DomainHelper;
Expand All @@ -13,7 +13,7 @@ class Module extends YiiModule

public function init() {
DomainHelper::forgeDomains([
'vendor' => 'yii2module\vendor\domain\Domain',
'vendor' => 'yii2tool\vendor\domain\Domain',
]);
parent::init();
}
Expand Down
2 changes: 1 addition & 1 deletion src/console/bin/ConfigController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use Yii;
use yii2rails\extension\console\helpers\Output;
Expand Down
22 changes: 11 additions & 11 deletions src/console/bin/GenerateDomainController.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use yii\console\Controller;
use yii2rails\extension\console\helpers\Output;
use yii2rails\extension\scenario\collections\ScenarioCollection;
use yii2module\vendor\console\commands\domainUnitGenerator\GenerateEntityCommand;
use yii2module\vendor\console\commands\domainUnitGenerator\GenerateRepositoryCommand;
use yii2module\vendor\console\commands\domainUnitGenerator\GenerateServiceCommand;
use yii2module\vendor\console\commands\domainUnitInput\InputEntityAttributesCommand;
use yii2module\vendor\console\commands\domainUnitInput\InputEntityNameCommand;
use yii2module\vendor\console\commands\domainUnitInput\QuestionIsActiveCommand;
use yii2module\vendor\console\commands\domainUnitInput\SelectDomainCommand;
use yii2module\vendor\console\commands\domainUnitInput\SelectRepositoryDriversCommand;
use yii2module\vendor\console\commands\domainUnitInput\SelectUnitTypesCommand;
use yii2module\vendor\console\events\DomainEvent;
use yii2tool\vendor\console\commands\domainUnitGenerator\GenerateEntityCommand;
use yii2tool\vendor\console\commands\domainUnitGenerator\GenerateRepositoryCommand;
use yii2tool\vendor\console\commands\domainUnitGenerator\GenerateServiceCommand;
use yii2tool\vendor\console\commands\domainUnitInput\InputEntityAttributesCommand;
use yii2tool\vendor\console\commands\domainUnitInput\InputEntityNameCommand;
use yii2tool\vendor\console\commands\domainUnitInput\QuestionIsActiveCommand;
use yii2tool\vendor\console\commands\domainUnitInput\SelectDomainCommand;
use yii2tool\vendor\console\commands\domainUnitInput\SelectRepositoryDriversCommand;
use yii2tool\vendor\console\commands\domainUnitInput\SelectUnitTypesCommand;
use yii2tool\vendor\console\events\DomainEvent;

class GenerateDomainController extends \yii\base\Component
{
Expand Down
4 changes: 2 additions & 2 deletions src/console/bin/GeneratorController.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use yii\console\Controller;
use yii2rails\extension\console\helpers\input\Enter;
use yii2rails\extension\console\helpers\input\Select;
use yii2rails\extension\console\helpers\Output;
use yii2mod\helpers\ArrayHelper;
use yii2module\vendor\domain\enums\TypeEnum;
use yii2tool\vendor\domain\enums\TypeEnum;

class GeneratorController extends \yii\base\Component
{
Expand Down
2 changes: 1 addition & 1 deletion src/console/bin/GitController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use Yii;
use yii2rails\extension\console\helpers\Output;
Expand Down
4 changes: 2 additions & 2 deletions src/console/bin/InfoController.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use Yii;
use yii\helpers\Inflector;
use yii2rails\extension\console\helpers\input\Select;
use yii2rails\extension\console\helpers\Output;
use yii2rails\extension\console\base\Controller;
use yii\helpers\ArrayHelper;
use yii2module\vendor\domain\entities\RequiredEntity;
use yii2tool\vendor\domain\entities\RequiredEntity;

class InfoController extends \yii\base\Component
{
Expand Down
2 changes: 1 addition & 1 deletion src/console/bin/InstallController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use Yii;
use yii\helpers\ArrayHelper;
Expand Down
4 changes: 2 additions & 2 deletions src/console/bin/PackageController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use yii2module\vendor\console\helpers\SelectPackageHelper;
use yii2tool\vendor\console\helpers\SelectPackageHelper;
use yii2rails\extension\console\helpers\Alert;
use yii2rails\extension\console\helpers\input\Enter;
use yii2rails\extension\console\helpers\input\Select;
Expand Down
2 changes: 1 addition & 1 deletion src/console/bin/PrettyController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use Yii;
use yii2rails\extension\console\helpers\input\Select;
Expand Down
4 changes: 2 additions & 2 deletions src/console/bin/TestController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yii2module\vendor\console\bin;
namespace yii2tool\vendor\console\bin;

use Yii;
use yii\console\ExitCode;
Expand All @@ -9,7 +9,7 @@
use yii2rails\extension\console\helpers\Output;
use yii2rails\extension\console\base\Controller;
use yii2rails\domain\data\EntityCollection;
use yii2module\vendor\domain\entities\TestEntity;
use yii2tool\vendor\domain\entities\TestEntity;

class TestController extends \yii\base\Component
{
Expand Down
4 changes: 2 additions & 2 deletions src/console/commands/Base.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace yii2module\vendor\console\commands;
namespace yii2tool\vendor\console\commands;

use yii2rails\extension\scenario\base\BaseScenario;
use yii2module\vendor\console\events\DomainEvent;
use yii2tool\vendor\console\events\DomainEvent;

abstract class Base extends BaseScenario {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace yii2module\vendor\console\commands\domainUnitGenerator;
namespace yii2tool\vendor\console\commands\domainUnitGenerator;

use yii\helpers\ArrayHelper;
use yii2module\vendor\console\commands\Base;
use yii2tool\vendor\console\commands\Base;

class GenerateEntityCommand extends Base {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace yii2module\vendor\console\commands\domainUnitGenerator;
namespace yii2tool\vendor\console\commands\domainUnitGenerator;

use yii\helpers\ArrayHelper;
use yii2module\vendor\console\commands\Base;
use yii2tool\vendor\console\commands\Base;

class GenerateRepositoryCommand extends Base {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace yii2module\vendor\console\commands\domainUnitGenerator;
namespace yii2tool\vendor\console\commands\domainUnitGenerator;

use yii\helpers\ArrayHelper;
use yii2module\vendor\console\commands\Base;
use yii2tool\vendor\console\commands\Base;

class GenerateServiceCommand extends Base {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace yii2module\vendor\console\commands\domainUnitInput;
namespace yii2tool\vendor\console\commands\domainUnitInput;

use yii2rails\extension\console\helpers\input\Enter;
use yii2module\vendor\console\commands\Base;
use yii2tool\vendor\console\commands\Base;

class InputEntityAttributesCommand extends Base {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace yii2module\vendor\console\commands\domainUnitInput;
namespace yii2tool\vendor\console\commands\domainUnitInput;

use yii2rails\extension\console\helpers\input\Enter;
use yii2module\vendor\console\commands\Base;
use yii2tool\vendor\console\commands\Base;

class InputEntityNameCommand extends Base {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace yii2module\vendor\console\commands\domainUnitInput;
namespace yii2tool\vendor\console\commands\domainUnitInput;

use yii2rails\extension\console\helpers\input\Question;
use yii2module\vendor\console\commands\Base;
use yii2tool\vendor\console\commands\Base;

class QuestionIsActiveCommand extends Base {

Expand Down
4 changes: 2 additions & 2 deletions src/console/commands/domainUnitInput/SelectDomainCommand.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace yii2module\vendor\console\commands\domainUnitInput;
namespace yii2tool\vendor\console\commands\domainUnitInput;

use yii2rails\extension\console\helpers\input\Select;
use yii2mod\helpers\ArrayHelper;
use yii2module\vendor\console\commands\Base;
use yii2tool\vendor\console\commands\Base;

class SelectDomainCommand extends Base {

Expand Down

0 comments on commit dbd041c

Please sign in to comment.