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>
This removes the recent visited table handling from the Header class and
moves it to a new middleware.
This also removes a duplicated update via front-end.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This is only used to get the NavigationWidth config value, and the same
value is stored in a data attribute. So this removes an unnecessary HTTP
request.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>