'beforeAction']; } public function beforeAction($event) { $action = $event->action->id; if (in_array($action, $this->actions)) { $this->controller->enableCsrfValidation = false; } } }