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 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>
This will remove the error:
> Error while working with template cache: Unable to create the cache directory
This does not fix the cache issue, but removes the warning.
The current behavior is to disable the cache when there's an issue with
it. However this has bad performance.
The issue is that sometimes Twig generates a different cache key than
the warmed up one and tries to write a new cache, but that's not the
desired behavior.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>