/** * @inheritdoc */ public function behaviors() { $behaviors = parent::behaviors(); $behaviors['access'] = ['class' => AccessControl::className(), 'rules' => [['actions' => ['sign-in', 'sign-up', 'forgot', 'error'], 'allow' => true], ['actions' => ['sign-out', 'update', 'view'], 'allow' => true, 'roles' => ['@']]]]; $behaviors['verbs'] = ['class' => VerbFilter::className(), 'actions' => ['sign-out' => ['post']]]; return $behaviors; }
/** * @inheritdoc */ public function init() { $this->basket = $this->module->basket; parent::init(); }