| @@ 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 |
|
| @@ 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 |
|
| @@ 162-174 (lines=13) @@ | ||
| 159 | * ) |
|
| 160 | * @param string $id organizer id |
|
| 161 | */ |
|
| 162 | public function createMemberAction(Request $request): Response |
|
| 163 | { |
|
| 164 | $form = $this->createAndProcessForm($request, OrganizerMemberFormType::class); |
|
| 165 | ||
| 166 | $apiResponseFactory = $this->get('rockparade.api_response_factory'); |
|
| 167 | $response = $apiResponseFactory->createResponse( |
|
| 168 | $this->createApiOperation($request), |
|
| 169 | $form, |
|
| 170 | $this->getUser() |
|
| 171 | ); |
|
| 172 | ||
| 173 | return $this->respond($response); |
|
| 174 | } |
|
| 175 | } |
|
| 176 | ||