1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00
Commit Graph

21 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
7d6b17a417 Replace sql_query global var with Current::$sqlQuery
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-12-09 13:51:22 -03:00
Kamil Tekiela
039481df30 Create UrlParams::$params
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-11-13 15:32:01 -03:00
Maurício Meneghini Fauth
90ee00efd5 Create the 'pma' global variable for Twig templates
Creates the Twig\PmaGlobalVariable class to handle the 'pma' Twig global
variable.

The idea of this global variable is to automatically inject in all
templates some useful information.

For now it only includes `pma.version` to get the phpMyAdmin version
and `pma.text_dir` to get the text direction ('ltr' or 'rtl').

Adding new variables to the `pma` global variable should be done with
caution.

- https://twig.symfony.com/doc/3.x/advanced.html#globals

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-09 20:30:48 -03:00
Maurício Meneghini Fauth
d2060c56d5 Change InvocableController to always return a Response
When 'null' is returned, ResponseRenderer::response() is called, so
call it early to always return a Response object.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 15:22:56 -03:00
Maurício Meneghini Fauth
1a356d894f Use the return of the called controller instead of null
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 13:22:08 -03:00
Maurício Meneghini Fauth
137283f909 Remove unused constructor params from controllers
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-08 15:59:34 -03:00
Maurício Meneghini Fauth
c965d07f68 Remove Controllers\AbstractController abstract class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-08 15:59:33 -03:00
Maurício Meneghini Fauth
036e8ce95f Move AbstractController::render method to ResponseRenderer
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-08 15:59:32 -03:00
Maurício Meneghini Fauth
7312c8eee5 Move AbstractController::checkParameters method to ResponseRenderer
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-08 15:59:32 -03:00
Maurício Meneghini Fauth
c212478ac8 Move AbstractController::redirect method to ResponseRenderer class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-08 15:59:31 -03:00
Maurício Meneghini Fauth
235c61da17 Move addScriptFiles method to ResponseRenderer class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-08 15:59:30 -03:00
Maurício Meneghini Fauth
181f971bc9 Create InvocableController interface
This creates the contract for the controllers.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-03 17:03:00 -03:00
Kamil Tekiela
7affa5e3ab Remove getSystemDatabase() method
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-18 21:24:51 +01:00
Maurício Meneghini Fauth
0307babf27 Replace text_dir global var with LanguageManager::$textDir static
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-12-26 16:20:58 -03:00
Maurício Meneghini Fauth
74054cb4d3 Extract container builder logic to ContainerBuilder class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-12-22 19:22:18 -03:00
Maurício Meneghini Fauth
711f6c0f14 Replace db global variable with static class property
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-12-17 14:58:59 -03:00
Kamil Tekiela
bf9fc416fe Refactor DbTableExists
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-12-13 18:02:40 +01:00
Kamil Tekiela
4fb335e960 Make in_array strict
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-12-07 17:11:48 +01:00
Kamil Tekiela
fc3b6a39e7 Fix TokensList usages
https://github.com/phpmyadmin/sql-parser/pull/504

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-09-17 21:06:15 +01:00
Maurício Meneghini Fauth
ae7f509820 Remove ExitException from AbstractController::checkParameters()
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-09-02 14:48:02 -03:00
Maurício Meneghini Fauth
c2955cc2b2 Rename the directory libraries/classes/ to src/
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-08-30 15:59:28 -03:00