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 */