|
|
@ -32,7 +32,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace') ? $request->get('namespace') : $this->getParameter('app.kevacoin.room.namespace.default'), |
|
|
|
'namespace' => $request->get('namespace') ? $request->get('namespace') : $this->getParameter('app.kevacoin.room.namespace.default'), |
|
|
|
'_fragment' => 'latest' |
|
|
|
'_fragment' => 'latest' |
|
|
|
] |
|
|
|
] |
|
|
@ -365,7 +364,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -413,7 +411,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -437,7 +434,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -466,7 +462,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -482,7 +477,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -501,7 +495,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -520,7 +513,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -536,7 +528,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -556,7 +547,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -575,7 +565,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -649,7 +638,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'error' => null, |
|
|
|
'error' => null, |
|
|
@ -722,7 +710,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'message' => null, |
|
|
|
'message' => null, |
|
|
@ -768,7 +755,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'error' => null, |
|
|
|
'error' => null, |
|
|
@ -783,7 +769,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
|
'sign' => $request->get('sign'), |
|
|
@ -813,7 +798,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'namespace' => $request->get('namespace'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'message' => $request->get('message'), |
|
|
|
'error' => $this->getParameter('app.maintenance'), |
|
|
|
'error' => $this->getParameter('app.maintenance'), |
|
|
@ -864,7 +848,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => $translator->trans('Session token expired') |
|
|
|
'error' => $translator->trans('Session token expired') |
|
|
|
] |
|
|
|
] |
|
|
@ -877,7 +860,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => $translator->trans('Name length out of KevaCoin protocol limits') |
|
|
|
'error' => $translator->trans('Name length out of KevaCoin protocol limits') |
|
|
|
] |
|
|
|
] |
|
|
@ -890,7 +872,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => sprintf( |
|
|
|
'error' => sprintf( |
|
|
|
$translator->trans('Room name does not match node requirements: %s'), |
|
|
|
$translator->trans('Room name does not match node requirements: %s'), |
|
|
@ -906,7 +887,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => $translator->trans('Could not create namespace in meta area') |
|
|
|
'error' => $translator->trans('Could not create namespace in meta area') |
|
|
|
] |
|
|
|
] |
|
|
@ -926,7 +906,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => $translator->trans('Room with same name already exists on this node!') |
|
|
|
'error' => $translator->trans('Room with same name already exists on this node!') |
|
|
|
] |
|
|
|
] |
|
|
@ -939,7 +918,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => sprintf( |
|
|
|
'error' => sprintf( |
|
|
|
$translator->trans('Access denied for host %s!'), |
|
|
|
$translator->trans('Access denied for host %s!'), |
|
|
@ -955,7 +933,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => sprintf( |
|
|
|
'error' => sprintf( |
|
|
|
$translator->trans('Access restricted for host %s!'), |
|
|
|
$translator->trans('Access restricted for host %s!'), |
|
|
@ -972,7 +949,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => sprintf( |
|
|
|
'error' => sprintf( |
|
|
|
$translator->trans('Please wait for %s seconds before add new room!'), |
|
|
|
$translator->trans('Please wait for %s seconds before add new room!'), |
|
|
@ -988,7 +964,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => $translator->trans('Insufficient funds') |
|
|
|
'error' => $translator->trans('Insufficient funds') |
|
|
|
] |
|
|
|
] |
|
|
@ -1046,7 +1021,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'warning' => sprintf( |
|
|
|
'warning' => sprintf( |
|
|
|
$translator->trans('To complete, send %s KVA to %s'), |
|
|
|
$translator->trans('To complete, send %s KVA to %s'), |
|
|
@ -1093,7 +1067,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_namespace', |
|
|
|
'room_namespace', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'namespace' => $namespace['namespaceId'], |
|
|
|
'namespace' => $namespace['namespaceId'], |
|
|
|
'error' => null, |
|
|
|
'error' => null, |
|
|
|
'message' => null, |
|
|
|
'message' => null, |
|
|
@ -1106,7 +1079,6 @@ class RoomController extends AbstractController |
|
|
|
return $this->redirectToRoute( |
|
|
|
return $this->redirectToRoute( |
|
|
|
'room_list', |
|
|
|
'room_list', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'mode' => $request->get('mode'), |
|
|
|
|
|
|
|
'name' => $name, |
|
|
|
'name' => $name, |
|
|
|
'error' => $translator->trans('Internal error! Please feedback') |
|
|
|
'error' => $translator->trans('Internal error! Please feedback') |
|
|
|
] |
|
|
|
] |
|
|
|