public function behaviors() { $behaviors = ['access' => ['rules' => [['actions' => ['issues', 'duplicate'], 'allow' => true, 'roles' => ['@']]]]]; return array_merge_recursive(parent::behaviors(), $behaviors); }
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); }
public function behaviors() { $behaviors = []; return array_merge(parent::behaviors(), $behaviors); }
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); }
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); }