Exemplo n.º 1
0
 public function behaviors()
 {
     $behaviors = ['access' => ['rules' => [['actions' => ['issues', 'duplicate'], 'allow' => true, 'roles' => ['@']]]]];
     return array_merge_recursive(parent::behaviors(), $behaviors);
 }
Exemplo n.º 2
0
 public function behaviors()
 {
     $behaviors = ['access' => ['class' => \yii\web\AccessControl::className(), 'only' => ['down', 'up', 'reset'], 'rules' => [['actions' => ['down', 'up'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => \yii\web\VerbFilter::className(), 'actions' => ['down' => ['get'], 'up' => ['get'], 'reset' => ['get']]]];
     return array_replace_recursive(parent::behaviors(), $behaviors);
 }
Exemplo n.º 3
0
 public function behaviors()
 {
     $behaviors = [];
     return array_merge(parent::behaviors(), $behaviors);
 }
Exemplo n.º 4
0
 public function behaviors()
 {
     $behaviors = ['access' => ['rules' => [['actions' => ['notifications', 'mark-notification-read', 'get-new-notifications', 'un-follow', 'follow'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['actions' => ['follow' => ['post'], 'un-follow' => ['post']]]];
     return array_merge_recursive(parent::behaviors(), $behaviors);
 }
Exemplo n.º 5
0
 public function behaviors()
 {
     $behaviors = ['access' => ['only' => ['down', 'up', 'reset'], 'rules' => [['actions' => ['down', 'up', 'reset'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['actions' => ['down' => ['get'], 'up' => ['get'], 'reset' => ['get']]]];
     return array_merge_recursive(parent::behaviors(), $behaviors);
 }