Kamil Tekiela
ef60f1df38
New respondWithErrorMessage()
...
Adds a new helper method to remove some visual clutter.
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com >
2026-10-19 20:54:38 -03:00
Maurício Meneghini Fauth
6b0c98f0db
Fix some coding standard issues
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br >
2026-08-13 16:11:37 -03:00
Kamil Tekiela
2968e07e72
Use assert instead of docbloc
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com >
2026-03-08 00:42:50 +00:00
Maurício Meneghini Fauth
a82b8e22a8
Add static analysis stub for PSR ContainerInterface
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net >
2025-07-15 18:37:24 -03:00
Maurício Meneghini Fauth
43ea6900cd
Add Response return for ResponseRenderer::redirectToRoute()
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net >
2025-07-14 22:14:00 -03:00
Maurício Meneghini Fauth
a8b338cb40
Add the Route attribute to controllers classes
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net >
2025-07-11 19:47:12 -03:00
William Desportes
f44bb362e4
Merge branch 'QA_5_2'
...
Signed-off-by: William Desportes <williamdes@wdes.fr >
2025-01-16 03:16:56 +01:00
Maurício Meneghini Fauth
03d9afc33f
Replace message global with Current::$message prop
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net >
2024-12-23 19:09:46 -03:00
Kamil Tekiela
8015e4de72
Move DatabaseInterface to Dbal
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com >
2024-12-22 18:34:53 +00:00
Kamil Tekiela
ce016798f9
Remove all unnecessary $GLOBALS['errorUrl']
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com >
2024-12-12 23:05:34 +00:00
Maurício Meneghini Fauth
b68a82e38c
Remove the ResponseRenderer::checkParameters() method
...
Refactor it to use ResponseRenderer::missingParameterError() instead.
This provides better parameter handling for the controllers.
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net >
2024-12-09 17:48:27 -03:00
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