[ 'class' => \yii\filters\VerbFilter::class, 'actions' => [ '' => ['GET', 'HEAD', 'OPTIONS'], 'profile-with-report-permission' => ['post', 'patch'], 'get-main-data' => ['get'] ], ] ]); } /** * @throws NotFoundHttpException */ public function actionIndex($id = null): ?array { return ProfileService::getProfile($id, \Yii::$app->request->get()); } /** * @throws BadRequestHttpException */ public function actionProfileWithReportPermission($id): ?array { return ProfileService::getProfileWithReportPermission($id); } /** * @throws ServerErrorHttpException */ public function actionGetMainData($user_id): array { return ProfileService::getMainData($user_id); } public function actionPortfolioProjects($card_id): array { return ProfileService::getPortfolioProjects($card_id); } }