forked from cheeseq/yii2-oauth2-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBootstrap.php
More file actions
29 lines (25 loc) · 673 Bytes
/
Bootstrap.php
File metadata and controls
29 lines (25 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace filsh\yii2\oauth2server;
/**
* Instead use bootstrap module
* should be removed in v2.1 version
*
* @deprecated v2.0.1
*/
class Bootstrap implements \yii\base\BootstrapInterface
{
use BootstrapTrait;
/**
* @inheritdoc
*/
public function bootstrap($app)
{
/** @var $module Module */
if ($app->hasModule('oauth2') && ($module = $app->getModule('oauth2')) instanceof Module) {
$this->initModule($module);
if ($app instanceof \yii\console\Application) {
$module->controllerNamespace = 'filsh\yii2\oauth2server\commands';
}
}
}
}