123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace manager\controllers;
- use yii\filters\AccessControl;
- use yii\filters\VerbFilter;
- use yii\web\Controller;
- class BaseController extends Controller
- {
- public function behaviors()
- {
- return [
- 'access' => [
- 'class' => AccessControl::class,
- 'rules' => [
- [
- 'allow' => true,
- 'roles' => ['@'],
- ],
- ],
- ],
- 'verbs' => [
- 'class' => VerbFilter::class,
- 'actions' => [
- 'logout' => ['post'],
- ],
- ],
- ];
- }
- }
|