Commit Graph

128723 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
ff47ba8e62
Merge pull request #19175 from MauricioFauth/controller-response
Change InvocableController to always return a Response object
2024-05-24 10:47:18 -03:00
Maurício Meneghini Fauth
99ad89e07d
Remove null handling from Http\Handler\ApplicationHandler
A Response object is always returned by InvocableController.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 15:35:08 -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
cd62509cb3
Make AddKeyController extends AbstractIndexController
Refactors Table\Structure\AddKeyController class to extends
Table\Structure\AbstractIndexController and to remove the dependency on
the Sql\SqlController class.

This helps with the response handling.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-22 12:18:07 -03:00
Masahiro Fujimoto
2997b5272e
Translated using Weblate (Japanese)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ja/
Signed-off-by: Masahiro Fujimoto <mfujimot@gmail.com>
2024-05-20 10:01:48 +02:00
Mohsen Bakhshande
8775bc8f43
Translated using Weblate (Persian)
Currently translated at 21.7% (742 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/fa/
Signed-off-by: Mohsen Bakhshande <waltonmohsen@gmail.com>
2024-05-20 10:01:47 +02:00
Maurício Meneghini Fauth
6e31406d4e
Merge pull request #19171 from kamil-tekiela/Tracking-refactoring
Tracking refactoring
2024-05-19 16:43:50 -03:00
phpMyAdmin bot
78cd47e3cf Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2024-05-19 00:20:51 +00:00
Maurício Meneghini Fauth
fefd6d1222
Merge pull request #19169 from MauricioFauth/flash-messages-statement
Add support for statement messages in FlashMessenger class
2024-05-18 20:53:04 -03:00
Andrei Stepanov
6c0ae415eb
Translated using Weblate (Russian)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <adem4ik@gmail.com>
2024-05-18 09:01:54 +00:00
Kamil Tekiela
0773e5d9a9 Create LogType enum
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-17 00:36:15 +02:00
Kamil Tekiela
1b0df7ecca Rename LogTypeEnum to TrackedDataType
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-17 00:36:15 +02:00
Kamil Tekiela
6c96e792e3 Compile the HTML string before returning it
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-17 00:36:15 +02:00
Maurício Meneghini Fauth
b094f33746
Merge pull request #19170 from kamil-tekiela/phpstan
Upgrade PHPStan to 1.11.1
2024-05-16 18:30:27 -03:00
Kamil Tekiela
eed80dde9d Upgrade PHPStan to 1.11.1
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-16 21:51:59 +02:00
Maurício Meneghini Fauth
1a357c3898
Lazy-load session storage in FlashMessenger
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 15:52:00 -03:00
Maurício Meneghini Fauth
d17e46c486
Extract message type match from Generator::getMessage
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 15:12:06 -03:00
Maurício Meneghini Fauth
cf44e8beb4
Extract flash messages view into components/flash_messages.twig
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 15:11:39 -03:00
Maurício Meneghini Fauth
c10d265ae5
Move flash message context to the shaped array
Does not group the messages by context.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-16 14:41:04 -03:00
Maurício Meneghini Fauth
64a8a9d779
Rename the FlashMessages class to FlashMessenger
This class handles the flash messages instead of being a collection
of flash messages, so FlashMessenger is a better name.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-15 19:42:35 -03:00
Maurício Meneghini Fauth
24fcf259f3
Add support for statement messages in FlashMessages class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-15 19:20:37 -03:00
Maurício Meneghini Fauth
256a847af7
Fix invalid value for sql_query global variable
Fixes #19162

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-15 12:57:29 -03:00
Yaron Shahrabani
2b936050f5
Translated using Weblate (Hebrew)
Currently translated at 43.7% (1488 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/he/
Signed-off-by: Yaron Shahrabani <sh.yaron@gmail.com>
2024-05-15 15:34:40 +02:00
Maurício Meneghini Fauth
4c98f9b348
Merge pull request #19159 from MauricioFauth/response-renderer-disable-removal
Remove the ResponseRenderer::disable() method
2024-05-14 15:12:42 -03:00
Maurício Meneghini Fauth
797fe78516
Merge pull request #19160 from kamil-tekiela/MessageType
Create MessageType enum
2024-05-14 12:36:38 -03:00
Kamil Tekiela
a3818291ee Tidy up getLevel and getContext
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-14 16:30:45 +02:00
Kamil Tekiela
d265dbbd91 Replace Message constants with enum
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-14 16:30:45 +02:00
Kamil Tekiela
99c4d34db2 Create MessageType enum
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-05-14 16:30:45 +02:00
Maurício Meneghini Fauth
578ed90b8f
Remove the ResponseRenderer::disable() method
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 18:13:27 -03:00
Maurício Meneghini Fauth
63fb02ecaf
Remove ResponseRenderer::disable from auth plugins
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 17:07:23 -03:00
Maurício Meneghini Fauth
e3c4e9998d
Remove ResponseRenderer::disable from Export\ExportController
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 16:44:36 -03:00
Maurício Meneghini Fauth
278c68b15b
Add unit test for ExportController download file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-13 16:22:23 -03:00
Maurício Meneghini Fauth
510e442593
Merge pull request #19156 from MauricioFauth/setup-controllers
Refactor setup controllers to implement InvocableController
2024-05-13 11:09:36 -03:00
Oğuz Ersen
6c5c48185f
Translated using Weblate (Turkish)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Oğuz Ersen <oguz@ersen.moe>
2024-05-13 03:02:47 +02:00
Andrei Stepanov
37199bf939
Translated using Weblate (Russian)
Currently translated at 100.0% (3404 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ru/
Signed-off-by: Andrei Stepanov <adem4ik@gmail.com>
2024-05-13 03:02:46 +02:00
Kristijan \"Fremen\" Velkovski
619976bc07
Translated using Weblate (Macedonian)
Currently translated at 27.8% (950 of 3407 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <me@krisfremen.com>
2024-05-13 03:02:45 +02:00
Hosted Weblate
aec0c11aa9
Merge branch 'origin/master' into Weblate.
[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/
2024-05-12 02:20:42 +02:00
Kristijan \"Fremen\" Velkovski
f1cc7fbcc2
Translated using Weblate (Macedonian)
Currently translated at 27.8% (949 of 3404 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/mk/
Signed-off-by: "Kristijan \"Fremen\" Velkovski" <me@krisfremen.com>
2024-05-12 02:20:41 +02:00
phpMyAdmin bot
e73b2cf747 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2024-05-12 00:20:31 +00:00
Maurício Meneghini Fauth
b93d1b9b52
Merge pull request #19154 from MauricioFauth/auth-plugin-response-handling
Remove ResponseRenderer::callExit() calls from auth plugins
2024-05-11 17:55:00 -03:00
Maurício Meneghini Fauth
c7963eab22
Remove ResponseRenderer::disable from Setup\ShowConfigController
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-11 17:50:40 -03:00
Maurício Meneghini Fauth
de7572b914
Inline and remove the Setup\FormProcessing class
This helps with the response handling.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-11 17:35:37 -03:00
Maurício Meneghini Fauth
126ac3ac56
Move check if setup is enabled to each setup controller
Removes it from the Setup\MainController as it will be removed in the
future.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-11 16:28:09 -03:00
Maurício Meneghini Fauth
0a681ea9ed
Make all setup controllers implement InvocableController
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-11 15:25:06 -03:00
Maurício Meneghini Fauth
32447c6f72
Remove Controllers\Setup\AbstractController class
Extracts AbstractController::getPages into SetupHelper class.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-10 21:45:32 -03:00
Maurício Meneghini Fauth
52b3ef4495
Remove Config\ConfigFile global variables
- Removes the 'cf' and 'ConfigFile' global variables.
- Extracts the ConfigFile creation from SetupPageRedirection middleware
and moves it to the Setup\SetupHelper class.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-10 21:16:33 -03:00
Maurício Meneghini Fauth
2fe67cc85b
Extract destroy action from Setup\ServersController
Extracts it into a new controller called Setup\ServerDestroyController.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-10 16:53:18 -03:00
Maurício Meneghini Fauth
9cac3a9bcc
Pass ServerRequest object directly to setup controllers
Instead of passing an array of parameters.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-10 16:36:34 -03:00
Maurício Meneghini Fauth
ae625702f1
Refactor Routing::callSetupController() to use ContainerBuilder
Uses the ContainerBuilder to factory the setup controllers.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-10 14:20:44 -03:00