| @@ 114-126 (lines=13) @@ | ||
| 111 | * } |
|
| 112 | * ) |
|
| 113 | */ |
|
| 114 | public function createAction(Request $request): Response |
|
| 115 | { |
|
| 116 | $form = $this->createAndProcessForm($request, OrganizerFormType::class); |
|
| 117 | ||
| 118 | $apiResponseFactory = $this->get('rockparade.api_response_factory'); |
|
| 119 | $response = $apiResponseFactory->createResponse( |
|
| 120 | $this->createApiOperation($request), |
|
| 121 | $form, |
|
| 122 | $this->getUser() |
|
| 123 | ); |
|
| 124 | ||
| 125 | return $this->respond($response); |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * Add new member to organization |
|
| @@ 168-180 (lines=13) @@ | ||
| 165 | * } |
|
| 166 | * ) |
|
| 167 | */ |
|
| 168 | public function createMemberAction(Request $request): Response |
|
| 169 | { |
|
| 170 | $form = $this->createAndProcessForm($request, OrganizerMemberFormType::class); |
|
| 171 | ||
| 172 | $apiResponseFactory = $this->get('rockparade.api_response_factory'); |
|
| 173 | $response = $apiResponseFactory->createResponse( |
|
| 174 | $this->createApiOperation($request), |
|
| 175 | $form, |
|
| 176 | $this->getUser() |
|
| 177 | ); |
|
| 178 | ||
| 179 | return $this->respond($response); |
|
| 180 | } |
|
| 181 | } |
|
| 182 | ||
| @@ 101-113 (lines=13) @@ | ||
| 98 | * } |
|
| 99 | * ) |
|
| 100 | */ |
|
| 101 | public function createAction(Request $request): Response |
|
| 102 | { |
|
| 103 | $form = $this->createAndProcessForm($request, BandFormType::class); |
|
| 104 | ||
| 105 | $apiResponseFactory = $this->get('rockparade.api_response_factory'); |
|
| 106 | $response = $apiResponseFactory->createResponse( |
|
| 107 | $this->createApiOperation($request), |
|
| 108 | $form, |
|
| 109 | $this->getUser() |
|
| 110 | ); |
|
| 111 | ||
| 112 | return $this->respond($response); |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * Edit band |
|
| @@ 204-216 (lines=13) @@ | ||
| 201 | * } |
|
| 202 | * ) |
|
| 203 | */ |
|
| 204 | public function createMemberAction(Request $request): Response |
|
| 205 | { |
|
| 206 | $form = $this->createAndProcessForm($request, BandMemberFormType::class); |
|
| 207 | ||
| 208 | $apiResponseFactory = $this->get('rockparade.api_response_factory'); |
|
| 209 | $response = $apiResponseFactory->createResponse( |
|
| 210 | $this->createApiOperation($request), |
|
| 211 | $form, |
|
| 212 | $this->getUser() |
|
| 213 | ); |
|
| 214 | ||
| 215 | return $this->respond($response); |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|
| 219 | * Delete member from band |
|