Kamil Tekiela
f708e074c9
Clean up config again ( #20264 )
...
* MaxTableList/MaxDbList/QueryHistoryMax
* UserprefsDisallow
* NaturalOrder
* Update TableTest.php
* MaxExactCountViews
* Update ReplicationGuiTest.php
* Update RoutinesTest.php
* Update StructureControllerTest.php
* Update ExportControllerTest.php
* Update StructureControllerTest.php
* Update BookmarkTest.php
* MaxCharactersInDisplayedSQL
* ActionLinksMode/ShowSQL/MysqlSslWarningSafeHosts
* Update TwoFactorTest.php
* ForeignKeyMaxLimit/ForeignKeyDropdownOrder
* QueryHistoryDB
* ZeroConf
* UseDbSearch
* MaxRoutineList
* NumFavoriteTables
* EnableAutocompleteForTablesAndColumns
* MaxExactCount/ShowStats
* InitialSlidersState
* Remove isset in Results
* Remove isset and fix tests
* PmaNoRelation_DisableWarning
* ShowCreateDb
* Update phpstan-baseline.neon
* Navigation
* Upgrading vimeo/psalm (6.15.0 => 6.16.1)
---------
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2026-04-10 16:33:08 -03:00
Maurício Meneghini Fauth
3392a3c2c6
Extract ResponseRenderer dependency from Config\PageSettings
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-02-13 21:22:16 -03:00
Maurício Meneghini Fauth
0386b1a0f9
Replace time() with ClockInterface in UserPreferences class
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-19 19:22:54 -03:00
Maurício Meneghini Fauth
4eecb4d7ae
Extract Config dependency from UserPreferences class
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2026-01-09 11:45:49 -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
37cbc4b3f3
Extract dependencies from Transformations class
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-06-21 14:39:37 -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
Maurício Meneghini Fauth
c52edb3e07
Move indexes classes to the Indexes namespace
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-03-30 14:23:23 -03:00
Kamil Tekiela
6909ef45b3
Merge ColumnFull & Column
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-01-22 16:38:43 +00:00
Maurício Meneghini Fauth
5548f8fe5b
Replace lang global var with Current::$lang prop
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-12-24 12:01:03 -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
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
Kamil Tekiela
82c85d26c0
Clean up of tests ( #19067 )
...
* Fix wrong type hint
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use $this instead of parent
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* setUp should be a protected method
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* onNotSuccessfulTest should be protected
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* $command doesn't need to be a property
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Give alertText() proper return type
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use null-safe operator
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Call Message static constructors statically
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Call StorageEngine methods statically
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Add better type hints in PrivilegesController
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use packed (without keys) arrays in tests
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use type casts instead of function casts
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use const instead of private property
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use const instead of private property
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Fix testAuthFailsTooLongPass()
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Replace loop with array_shift
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use ob_get_clean
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Remove duplicated code
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
* Use assert instead of phpdoc
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
---------
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2024-03-20 13:34:55 -03:00
Maurício Meneghini Fauth
606f66b5df
Rename tests/classes to tests/unit
...
This directory is for unit tests only, so let's rename it to unit to be
more clear.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-02-23 13:29:07 -03:00