mirror of
https://github.com/kevachat/webapp.git
synced 2025-02-02 09:55:58 +00:00
remove deprecated construction
This commit is contained in:
parent
7c94416550
commit
f8c5dc5fad
@ -240,27 +240,6 @@ class RoomController extends AbstractController
|
||||
$this->getParameter('app.kevacoin.password')
|
||||
);
|
||||
|
||||
// Get local namespaces
|
||||
$namespaces = [];
|
||||
|
||||
foreach ((array) $client->kevaListNamespaces() as $value)
|
||||
{
|
||||
$namespaces[] = $value['namespaceId'];
|
||||
}
|
||||
|
||||
// Check namespace exist for this wallet
|
||||
if (!in_array($request->get('namespace'), $namespaces))
|
||||
{
|
||||
return $this->redirectToRoute(
|
||||
'room_namespace',
|
||||
[
|
||||
'namespace' => $request->get('namespace'),
|
||||
'message' => $request->get('message'),
|
||||
'error' => $translator->trans('Namespace not related with this node!')
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
// Check namespace defined in config
|
||||
if (!in_array($request->get('namespace'), (array) explode('|', $this->getParameter('app.kevacoin.room.namespaces'))))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user