Commit Graph

82 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
cad4c6fc1e
Extract user preferences handling from Config class
This removes the Config's circular dependency on DatabaseInterface
class.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-09 11:27:47 -03:00
Maurício Meneghini Fauth
520cd8ef8b
Move UserPreferences class to Config namespace
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-09 11:13:26 -03:00
Maurício Meneghini Fauth
dc1a890126
Extract function to load services from services file
Extracts to ContainerBuilder::loadServices(), removes service alias
support and add unit tests.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-07 22:37:05 -03:00
Maurício Meneghini Fauth
79393bfa70
Remove unnecessary array nesting in services files
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-07 13:28:31 -03:00
Maurício Meneghini Fauth
b4e3ba8409
Remove '@' char from service arguments in services file
As only other services are used as arguments, there's no need for it.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-07 12:41:01 -03:00
Maurício Meneghini Fauth
4f737ab8b0
Replace custom service names with the class names
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-06 20:11:04 -03:00
Maurício Meneghini Fauth
64f68ff92d
Remove argument names from services declaration files
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-06 19:57:31 -03:00
Maurício Meneghini Fauth
9171993bdb
Merge pull request #20008 from kamil-tekiela/Database-ns-refactoring
Refactor classes in Database namespace
2026-01-05 17:28:54 -03:00
Maurício Meneghini Fauth
6db52b05b1
Extract dependencies from Header
Uses DI instead.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-04 15:09:30 -03:00
Kamil Tekiela
8532a8deb0 Refactor MultiTableQuery
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2026-01-01 21:01:40 +00:00
Kamil Tekiela
d93a3cf022 DI config
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2026-01-01 21:01:39 +00:00
Maurício Meneghini Fauth
7bfb1dde0f
Extract dependencies from Authentication middleware
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-12-23 20:15:27 -03:00
Maurício Meneghini Fauth
88eb22bc57
Merge pull request #19957 from kamil-tekiela/Refactor-ExportPlugin
Refactor export plugins
2025-12-15 21:02:02 -03:00
Kamil Tekiela
0833498c0e Use DI for the new class
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-11-22 20:19:24 +00:00
Kamil Tekiela
70a773e52c Refactor hasNoRightsToDropDatabase
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-11-21 00:30:33 +00:00
Maurício Meneghini Fauth
195d049b69
Refactor ChangeLogController to use the new changelog file
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-10-14 13:20:52 -03: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
b43504a182
Lazy-load middleware in QueueRequestHandler
Registers only middleware class names instead of instances.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-07-14 15:22:48 -03:00
Maurício Meneghini Fauth
9c576fcc9c
Refactor Twig extensions to use Twig's AttributeExtension
This allows to remove most extensions.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-07-08 13:23:34 -03:00
Maurício Meneghini Fauth
37cbc4b3f3
Extract dependencies from Transformations class
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-06-21 14:39:37 -03:00
Kamil Tekiela
ef85fd44b2 Move Console class to Console NS
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-05-23 00:27:17 +01:00
Kamil Tekiela
52b8a6a831 Move History methods to a new class
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-05-23 00:27:15 +01:00
Maurício Meneghini Fauth
39b9899e03
Replace Sql class construction with DI when possible
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-05-06 20:44:07 -03:00
Maurício Meneghini Fauth
1a25a06d0d
Replace Config::getInstance with DI in controllers
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-05-01 21:51:43 -03:00
Kamil Tekiela
de3f7bc1dc Create a new controller
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-01-16 22:14:46 +00:00
Kamil Tekiela
0db131572c Dbi: take Config as a parameter
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-12-31 14:56:02 +00:00
Kamil Tekiela
8015e4de72 Move DatabaseInterface to Dbal
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-12-22 18:34:53 +00:00
Jacek Barecki
003f092277
Fix #17262 - Add warning when setting a password to a blank value if AllowNoPassword is false (#19315)
* Fix #17262 - Add warning when setting a password to a blank value if AllowNoPassword is false

Closes #17262

Signed-off-by: Jacek Barecki <jacek.barecki@gmail.com>
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-10-11 14:35:11 -03:00
Maurício Meneghini Fauth
bd2140576b
Remove the PHPMYADMIN constant
This constant was used to avoid non-entry-points scripts being called
directly. As phpMyAdmin has a public directory now, directly calling
scripts outside public is not possible anymore.

Introduced by afbb2a9dc2.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-25 16:48:18 -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
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
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
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
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
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
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
Maurício Meneghini Fauth
ad1336feb5
Remove ResponseRenderer::disable from SchemaExportController
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:12:07 -03:00
Maurício Meneghini Fauth
058ba3d3a2
Remove ResponseRenderer::disable from LintController
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 19:27:58 -03:00
Maurício Meneghini Fauth
7fa1fc6ea6
Remove ResponseRenderer::disable from CopyFormController
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 13:22:35 -03:00
Maurício Meneghini Fauth
4d0565b7cd
Remove ResponseRenderer::disable from ChangePrefixFormController
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-05 20:36:20 -03:00
Maurício Meneghini Fauth
5c7667369f
Remove ResponseRenderer::disable from AddPrefixController
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-05 19:34:29 -03:00
Maurício Meneghini Fauth
7f2c3ddfbb
Remove ResponseRenderer::disable from LicenseController
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-04 15:09:56 -03:00