Skip to content

Commit 83b02d5

Browse files
committed
Added check to initialize
1 parent 14e0b83 commit 83b02d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Module.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
namespace githubjeka\rbac;
33

4+
use yii\base\InvalidConfigException;
5+
46
/**
57
* Graphical user module for Role Based Access Control Yii2 Module.
68
* It also allows to perform basic operations RBAC.
@@ -30,6 +32,9 @@ class Module extends \yii\base\Module
3032
*/
3133
public function init()
3234
{
35+
if (\Yii::$app->authManager === null) {
36+
throw new InvalidConfigException('You should configure authManager component');
37+
}
3338
parent::init();
3439
}
3540
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy