You've already forked phpmyadmin
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user