Complete move from old repository to new repository structure!
This commit is contained in:
parent
2cabb61b54
commit
72735c24f7
27 changed files with 964 additions and 730 deletions
|
@ -84,7 +84,7 @@ class SubuserDeletionService
|
|||
*/
|
||||
public function handle($subuser)
|
||||
{
|
||||
$subuser = $this->repository->getWithServerAndPermissions($subuser);
|
||||
$subuser = $this->repository->getWithServer($subuser);
|
||||
|
||||
$this->connection->beginTransaction();
|
||||
$response = $this->repository->delete($subuser->id);
|
||||
|
@ -97,9 +97,9 @@ class SubuserDeletionService
|
|||
return $response;
|
||||
} catch (RequestException $exception) {
|
||||
$this->connection->rollBack();
|
||||
$response = $exception->getResponse();
|
||||
$this->writer->warning($exception);
|
||||
|
||||
$response = $exception->getResponse();
|
||||
throw new DisplayException(trans('admin/exceptions.daemon_connection_failed', [
|
||||
'code' => is_null($response) ? 'E_CONN_REFUSED' : $response->getStatusCode(),
|
||||
]));
|
||||
|
|
Reference in a new issue