Skip to content

Commit

Permalink
Added migrations bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
execut committed Mar 9, 2021
1 parent b8dabd1 commit 047618f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bootstrap/Auto.php
Expand Up @@ -6,7 +6,6 @@
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
namespace execut\crudFields\bootstrap;

use yii\base\BootstrapInterface;
use yii\console\Application;

Expand All @@ -23,6 +22,8 @@ public function bootstrap($app)
{
$bootstraps = [];
if ($app instanceof Application) {
$bootstraps[] = new Console();
} else if ($app->id === 'backend') {
$bootstraps[] = new Backend();
}

Expand Down
21 changes: 21 additions & 0 deletions src/bootstrap/Console.php
@@ -0,0 +1,21 @@
<?php
/**
* @author Mamaev Yuriy (eXeCUT)
* @link https://github.com/execut
* @copyright Copyright (c) 2020 Mamaev Yuriy (eXeCUT)
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
namespace execut\crudFields\bootstrap;
use execut\yii\Bootstrap;

/**
* Bootstrap for console application
* @package execut\books
*/
class Console extends Bootstrap
{
public function bootstrap($app)
{
parent::bootstrap($app); // TODO: Change the autogenerated stub
}
}
File renamed without changes.

0 comments on commit 047618f

Please sign in to comment.