From 0d79a7df341cfe0eaba4c861624b69fe452f5ebb Mon Sep 17 00:00:00 2001 From: Kavalar Date: Fri, 24 May 2024 20:23:09 +0300 Subject: [PATCH] company controller --- .../company/controllers/CompanyController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/frontend/modules/company/controllers/CompanyController.php b/frontend/modules/company/controllers/CompanyController.php index 4d5c453..580f736 100644 --- a/frontend/modules/company/controllers/CompanyController.php +++ b/frontend/modules/company/controllers/CompanyController.php @@ -22,6 +22,21 @@ class CompanyController extends Controller $this->service = new CompanyService(); } + /** + * {@inheritdoc} + */ + public function behaviors() + { + return [ + 'verbs' => [ + 'class' => VerbFilter::className(), + 'actions' => [ + 'delete' => ['POST'], + ], + ], + ]; + } + /** * @inheritDoc */