1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-23 18:29:15 +03:00

Add the Route attribute to controllers classes

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This commit is contained in:
Maurício Meneghini Fauth
2025-07-10 20:42:23 -03:00
parent eb07284bc4
commit a8b338cb40
204 changed files with 602 additions and 13 deletions

View File

@@ -9,6 +9,7 @@ use JsonException;
use PhpMyAdmin\Http\Factory\ResponseFactory;
use PhpMyAdmin\Http\Response;
use PhpMyAdmin\Http\ServerRequest;
use PhpMyAdmin\Routing\Route;
use function __;
use function _pgettext;
@@ -22,6 +23,7 @@ use const JSON_THROW_ON_ERROR;
/**
* Exporting of translated messages from PHP to JavaScript.
*/
#[Route('/messages', ['GET'])]
final class JavaScriptMessagesController implements InvocableController
{
public function __construct(private readonly ResponseFactory $responseFactory)