portal.mkgtu.ru/common/rbac/Migration.php

30 lines
410 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\rbac;
use Yii;
use yii\base\InvalidConfigException;
use yii\db\Migration as DbMigration;
use yii\db\MigrationInterface;
use yii\rbac\BaseManager;
class Migration extends DbMigration implements MigrationInterface
{
public $auth = 'authManager';
public function init()
{
parent::init();
$this->auth = Yii::$app->get('authManager');
}
}