This method belongs to the ServerRequest class instead of the ResponseRenderer class, as it's a request property. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
28 lines
612 B
PHP
28 lines
612 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Controllers\Export;
|
|
|
|
use PhpMyAdmin\Controllers\AbstractController;
|
|
use PhpMyAdmin\Http\ServerRequest;
|
|
|
|
final class CheckTimeOutController extends AbstractController
|
|
{
|
|
public function __invoke(ServerRequest $request): void
|
|
{
|
|
if (! $request->isAjax()) {
|
|
return;
|
|
}
|
|
|
|
if (isset($_SESSION['pma_export_error'])) {
|
|
unset($_SESSION['pma_export_error']);
|
|
$this->response->addJSON('message', 'timeout');
|
|
|
|
return;
|
|
}
|
|
|
|
$this->response->addJSON('message', 'success');
|
|
}
|
|
}
|