1 | <?php |
||
7 | class Application extends App |
||
8 | { |
||
9 | use App\FormTrait; |
||
10 | use App\MonologTrait; |
||
11 | use App\SecurityTrait; |
||
12 | use App\SwiftmailerTrait; |
||
13 | use App\TranslationTrait; |
||
14 | use App\TwigTrait; |
||
15 | use App\UrlGeneratorTrait; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $configurationDir; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $environment; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $rootDir; |
||
31 | |||
32 | /** |
||
33 | * Constructor. |
||
34 | * |
||
35 | * @param string $environment |
||
36 | * @param bool $debug |
||
37 | * @param array $values |
||
38 | */ |
||
39 | public function __construct(string $environment, bool $debug = false, array $values = []) |
||
54 | |||
55 | public function getCacheDir() |
||
59 | |||
60 | public function getConfigurationDir() |
||
68 | |||
69 | public function getEnvironment() |
||
73 | |||
74 | public function getLogDir() |
||
78 | |||
79 | public function getRootDir() |
||
87 | |||
88 | public function loadConfiguration() |
||
97 | |||
98 | public function loadRoutes() |
||
103 | |||
104 | public function registerControllers() |
||
115 | |||
116 | public function registerHandlers() |
||
121 | |||
122 | public function registerProviders() |
||
131 | } |
||
132 |