src/Service/CasesService.php 1 location
|
@@ 213-229 (lines=17) @@
|
210 |
|
* @param ViewCasesRequest $request |
211 |
|
* @throws CasesNotFoundException |
212 |
|
*/ |
213 |
|
public function delete(ViewCasesRequest $request) |
214 |
|
{ |
215 |
|
$transformer = $this->transformerFactory->get(CasesDataTransformerFactory::REQUEST_VIEW); |
216 |
|
$configuration = $this->configurationFactory->get(CasesConfigurationFactory::CONFIGURATION_VIEW); |
217 |
|
|
218 |
|
try { |
219 |
|
$params = $this->checkRequest($request, $transformer, $configuration); |
220 |
|
} catch (InvalidConfigurationException $exception) { |
221 |
|
throw new InvalidConfigurationException($exception->getMessage()); |
222 |
|
} |
223 |
|
|
224 |
|
try { |
225 |
|
$this->requestService->delete("cases/{$params['case_id']}"); |
226 |
|
} catch (ClientException $exception) { |
227 |
|
throw $exception; |
228 |
|
} |
229 |
|
} |
230 |
|
} |
231 |
|
|
src/Service/GroupService.php 1 location
|
@@ 175-187 (lines=13) @@
|
172 |
|
* @param ViewGroupRequest $request |
173 |
|
* @return GroupResponse |
174 |
|
*/ |
175 |
|
public function delete(ViewGroupRequest $request) |
176 |
|
{ |
177 |
|
$transformer = $this->transformerFactory->get(GroupDataTransformerFactory::REQUEST_VIEW); |
178 |
|
$configuration = $this->configurationFactory->get(GroupConfigurationFactory::CONFIGURATION_VIEW); |
179 |
|
|
180 |
|
try { |
181 |
|
$params = $this->checkRequest($request, $transformer, $configuration); |
182 |
|
} catch (InvalidConfigurationException $exception) { |
183 |
|
throw new InvalidConfigurationException($exception->getMessage()); |
184 |
|
} |
185 |
|
|
186 |
|
$this->requestService->delete("groups/{$params['group_id']}"); |
187 |
|
} |
188 |
|
} |
189 |
|
|
src/Service/StaffService.php 1 location
|
@@ 188-200 (lines=13) @@
|
185 |
|
/** |
186 |
|
* @param ViewStaffRequest $request |
187 |
|
*/ |
188 |
|
public function delete(ViewStaffRequest $request) |
189 |
|
{ |
190 |
|
$transformer = $this->transformerFactory->get(StaffDataTransformerFactory::REQUEST_VIEW); |
191 |
|
$configuration = $this->configurationFactory->get(StaffConfigurationFactory::CONFIGURATION_VIEW); |
192 |
|
|
193 |
|
try { |
194 |
|
$params = $this->checkRequest($request, $transformer, $configuration); |
195 |
|
} catch (InvalidConfigurationException $exception) { |
196 |
|
throw new InvalidConfigurationException($exception->getMessage()); |
197 |
|
} |
198 |
|
|
199 |
|
$this->requestService->delete("staff/{$params['staff_id']}"); |
200 |
|
} |
201 |
|
} |
202 |
|
|
src/Service/UserService.php 1 location
|
@@ 216-228 (lines=13) @@
|
213 |
|
/** |
214 |
|
* @param ViewUserRequest $request |
215 |
|
*/ |
216 |
|
public function delete(ViewUserRequest $request) |
217 |
|
{ |
218 |
|
$transformer = $this->transformerFactory->get(UserDataTransformerFactory::REQUEST_VIEW); |
219 |
|
$configuration = $this->configurationFactory->get(UserConfigurationFactory::CONFIGURATION_VIEW); |
220 |
|
|
221 |
|
try { |
222 |
|
$params = $this->checkRequest($request, $transformer, $configuration); |
223 |
|
} catch (InvalidConfigurationException $exception) { |
224 |
|
throw new InvalidConfigurationException($exception->getMessage()); |
225 |
|
} |
226 |
|
|
227 |
|
$this->requestService->delete("users/{$params['user_id']}"); |
228 |
|
} |
229 |
|
} |
230 |
|
|