| @@ 103-115 (lines=13) @@ | ||
| 100 | * } |
|
| 101 | * ) |
|
| 102 | */ |
|
| 103 | public function createAction(Request $request): Response |
|
| 104 | { |
|
| 105 | $form = $this->createAndProcessForm($request, BandFormType::class); |
|
| 106 | ||
| 107 | $apiResponseFactory = $this->get('rockparade.api_response_factory'); |
|
| 108 | $response = $apiResponseFactory->createResponse( |
|
| 109 | $this->createApiOperation($request), |
|
| 110 | $form, |
|
| 111 | $this->getUser() |
|
| 112 | ); |
|
| 113 | ||
| 114 | return $this->respond($response); |
|
| 115 | } |
|
| 116 | ||
| 117 | /** |
|
| 118 | * Edit band |
|
| @@ 206-218 (lines=13) @@ | ||
| 203 | * } |
|
| 204 | * ) |
|
| 205 | */ |
|
| 206 | public function createMemberAction(Request $request): Response |
|
| 207 | { |
|
| 208 | $form = $this->createAndProcessForm($request, BandMemberFormType::class); |
|
| 209 | ||
| 210 | $apiResponseFactory = $this->get('rockparade.api_response_factory'); |
|
| 211 | $response = $apiResponseFactory->createResponse( |
|
| 212 | $this->createApiOperation($request), |
|
| 213 | $form, |
|
| 214 | $this->getUser() |
|
| 215 | ); |
|
| 216 | ||
| 217 | return $this->respond($response); |
|
| 218 | } |
|
| 219 | ||
| 220 | /** |
|
| 221 | * Delete member from band |
|
| @@ 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 | ||