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
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
Maurício Meneghini Fauth
c6c9aeb678
Merge #19124 - Refactoring move copy
...
The goal of this was to partition the big method into smaller easier to
understand chunks and get rid of globals. This code is still far from
perfect but I have no idea how to proceed further right now.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-10 11:13:57 -03:00
Kristijan \"Fremen\" Velkovski
70b67fa926
Translated using Weblate (Macedonian)
...
Currently translated at 27.7% (944 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-10 09:26:51 +02:00
Maurício Meneghini Fauth
898fb91773
Merge pull request #19151 from MauricioFauth/stmt-history-middleware
...
Extract Footer::setHistory() into a middleware
2024-05-09 19:40:47 -03:00
Maurício Meneghini Fauth
6a425a2d00
Add better method names for Exceptions\AuthenticationFailure
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 18:06:52 -03:00
Maurício Meneghini Fauth
bc00b69050
Remove callExit() from AuthenticationPlugin::readCredentials()
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 16:07:05 -03:00
Maurício Meneghini Fauth
e435bb7129
Remove callExit() from AuthenticationHttp::authForm()
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 15:32:46 -03:00
Maurício Meneghini Fauth
02044f2160
Remove callExit() from AuthenticationPlugin::checkTwoFactor()
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 15:13:17 -03:00
Maurício Meneghini Fauth
70757ceede
Remove callExit() from AuthenticationCookie::rememberCredentials()
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 14:59:58 -03:00
Maurício Meneghini Fauth
d0121dcf5d
Remove callExit() from AuthenticationPlugin::showLoginForm()
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 14:31:19 -03:00
Maurício Meneghini Fauth
aa70f48537
Remove callExit() from AuthenticationPlugin::authenticate()
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 13:10:17 -03:00
Maurício Meneghini Fauth
ad98ad27cb
Change AuthenticationPlugin::showFailure() return type
...
Instead of throwing an ExitException, showFailure() now returns
a Response object.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 12:58:46 -03:00
Maurício Meneghini Fauth
cfdaedb623
Create AuthenticationFailure exception
...
Refactors the AuthenticationPlugin::showFailure() to receive the new
exception and move the showFailure calls to the Authentication
middleware.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-09 11:16:51 -03:00
Maurício Meneghini Fauth
5e429ffc7d
Extract Footer::setHistory() into a middleware
...
This is always done after a response, so is better to extract it into a
middleware instead.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-08 17:11:57 -03:00
Maurício Meneghini Fauth
2a58575683
Merge pull request #19144 from kamil-tekiela/UiProperty
...
Add UiProperty enum
2024-05-07 21:33:33 -03:00
Maurício Meneghini Fauth
7ba6d987aa
Merge pull request #19149 from MauricioFauth/response-renderer-disable-removal
...
Remove ResponseRenderer::disable() from controllers
2024-05-07 19:12:31 -03:00
Maurício Meneghini Fauth
ea322a6b2c
Remove ResponseRenderer::disable from GisVisualizationController
...
Creates a new Response object instead of using the response from
ResponseRenderer class.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-07 12:51:08 -03:00
Maurício Meneghini Fauth
d2e96532a0
Remove ResponseRenderer::disable from GetFieldController
...
Creates a new Response object instead of using the response from
ResponseRenderer class.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-07 12:38:07 -03:00
Maurício Meneghini Fauth
bea78f6b0b
Remove ResponseRenderer::disable from Preferences\ManageController
...
Creates a new Response object instead of using the response from
ResponseRenderer class.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-07 12:21:39 -03:00
Maurício Meneghini Fauth
06fed2283c
Remove ResponseRenderer::disable from TrackingController
...
Creates a new Response object instead of using the response from
ResponseRenderer class.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-07 12:07:44 -03:00
Maurício Meneghini Fauth
e7123c1ecf
Remove ResponseRenderer::disable from Transformation\WrapperController
...
Creates a new Response object instead of using the response from
ResponseRenderer class.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-06 21:36:22 -03:00
Maurício Meneghini Fauth
319639cf6b
Remove ResponseRenderer::disable from VersionCheckController
...
Creates a new Response object instead of using the response from
ResponseRenderer class.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-05-06 20:31:58 -03:00