|
|
@ -128,24 +128,17 @@ class MainController extends AbstractController |
|
|
|
{ |
|
|
|
{ |
|
|
|
$index = new \Kvazar\Index\Manticore(); |
|
|
|
$index = new \Kvazar\Index\Manticore(); |
|
|
|
|
|
|
|
|
|
|
|
$records = $index->get( |
|
|
|
foreach ($index->get( |
|
|
|
'', |
|
|
|
'', |
|
|
|
[ |
|
|
|
[ |
|
|
|
'crc32_transaction' => crc32( |
|
|
|
'crc32_transaction' => crc32( |
|
|
|
$request->get('transaction') |
|
|
|
$request->get('transaction') |
|
|
|
) |
|
|
|
) |
|
|
|
] |
|
|
|
] |
|
|
|
); |
|
|
|
) as $record) |
|
|
|
|
|
|
|
{ |
|
|
|
if (empty($records)) |
|
|
|
if ($record['transaction'] === $request->get('transaction')) |
|
|
|
{ |
|
|
|
{ |
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$record = reset( |
|
|
|
|
|
|
|
$records |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->render( |
|
|
|
return $this->render( |
|
|
|
'default/main/transaction.html.twig', |
|
|
|
'default/main/transaction.html.twig', |
|
|
|
[ |
|
|
|
[ |
|
|
@ -154,4 +147,8 @@ class MainController extends AbstractController |
|
|
|
] |
|
|
|
] |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |