Skip to content

Commit

Permalink
remove bootstrap function from the ConsoleModule
Browse files Browse the repository at this point in the history
  • Loading branch information
igor committed Oct 15, 2016
1 parent b5ea835 commit c943172
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions ConsoleModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace yii2mod\rbac;

use yii\base\BootstrapInterface;

/**
* Class ConsoleModule
*
Expand All @@ -20,20 +18,10 @@
* ]
* ~~~
*/
class ConsoleModule extends Module implements BootstrapInterface
class ConsoleModule extends Module
{
/**
* @var string the namespace that controller classes are in.
*/
public $controllerNamespace = 'yii2mod\rbac\commands';

/**
* @param $app
*/
public function bootstrap($app)
{
if ($app instanceof \yii\console\Application) {
$this->controllerNamespace = 'yii2mod\rbac\commands';
}
}
}

0 comments on commit c943172

Please sign in to comment.