Class dektrium\rbac\Bootstrap

Inheritancedektrium\rbac\Bootstrap
Implementsyii\base\BootstrapInterface

Bootstrap class registers translations and needed application components.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
bootstrap() dektrium\rbac\Bootstrap

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
checkAuthManagerConfigured() Verifies that authManager component is configured. dektrium\rbac\Bootstrap
checkRbacModuleInstalled() Verifies that dektrium/yii2-rbac is installed and configured. dektrium\rbac\Bootstrap
checkUserModuleInstalled() Verifies that dektrium/yii2-user is installed and configured. dektrium\rbac\Bootstrap

Method Details

bootstrap() public method

public void bootstrap ( $app )
$app
checkAuthManagerConfigured() protected method

Verifies that authManager component is configured.

protected bool checkAuthManagerConfigured ( \yii\base\Application $app )
$app \yii\base\Application
checkRbacModuleInstalled() protected method

Verifies that dektrium/yii2-rbac is installed and configured.

protected bool checkRbacModuleInstalled ( \yii\base\Application $app )
$app \yii\base\Application
checkUserModuleInstalled() protected method

Verifies that dektrium/yii2-user is installed and configured.

protected bool checkUserModuleInstalled ( \yii\base\Application $app )
$app \yii\base\Application