Commit Graph

3 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
f6e74de251
Extract some dependencies from the Application class
- Extracts the ErrorHandler, Config and Template dependencies from the
  Application class.
- Loads HTTP ServerRequest object after loading the user config.
- Requires a Config object for the Template class.
- Disables Twig's cache if an exception is thrown before loading the
  user config. This way a possible different cache directory will not be
  used.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-16 15:55:20 -03:00
Maurício Meneghini Fauth
951c965d6e
Change Application static methods to instance methods
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-13 16:36:31 -03:00
Maurício Meneghini Fauth
1aa8221276
Rename the Common class to Application
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-06-13 14:40:21 -03:00