src/AppBundle/Controller/BandController.php 1 location
|
@@ 109-122 (lines=14) @@
|
| 106 |
|
* } |
| 107 |
|
* ) |
| 108 |
|
*/ |
| 109 |
|
public function createAction(Request $request): Response |
| 110 |
|
{ |
| 111 |
|
$form = $this->createAndProcessForm($request, BandFormType::class); |
| 112 |
|
|
| 113 |
|
$apiResponseFactory = $this->get('rockparade.api_response_factory'); |
| 114 |
|
$response = $apiResponseFactory->createResponse( |
| 115 |
|
$this->createApiOperation($request), |
| 116 |
|
$form, |
| 117 |
|
$this->getUser(), |
| 118 |
|
Band::class |
| 119 |
|
); |
| 120 |
|
|
| 121 |
|
return $this->respond($response); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
/** |
| 125 |
|
* Edit band |
src/AppBundle/Controller/OrganizerController.php 1 location
|
@@ 113-126 (lines=14) @@
|
| 110 |
|
* } |
| 111 |
|
* ) |
| 112 |
|
*/ |
| 113 |
|
public function createAction(Request $request): Response |
| 114 |
|
{ |
| 115 |
|
$form = $this->createAndProcessForm($request, OrganizerFormType::class); |
| 116 |
|
|
| 117 |
|
$apiResponseFactory = $this->get('rockparade.api_response_factory'); |
| 118 |
|
$response = $apiResponseFactory->createResponse( |
| 119 |
|
$this->createApiOperation($request), |
| 120 |
|
$form, |
| 121 |
|
$this->getUser(), |
| 122 |
|
Organizer::class |
| 123 |
|
); |
| 124 |
|
|
| 125 |
|
return $this->respond($response); |
| 126 |
|
} |
| 127 |
|
} |
| 128 |
|
|