1 | <?php |
||
28 | class Application extends BaseApplication |
||
29 | { |
||
30 | /** @var bool */ |
||
31 | private $safeMode; |
||
32 | /** @var bool */ |
||
33 | private $useCache; |
||
34 | /** @var Container */ |
||
35 | private $container; |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function run(InputInterface $input = null, OutputInterface $output = null) |
||
60 | |||
61 | /// |
||
62 | // Application Settings |
||
63 | /// |
||
64 | |||
65 | /** |
||
66 | * Get whether or not the application is being run in safe mode. |
||
67 | * |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function inSafeMode() |
||
74 | |||
75 | /** |
||
76 | * Set safe mode for the application. |
||
77 | * |
||
78 | * @param bool $safeMode |
||
79 | */ |
||
80 | public function setSafeMode($safeMode) |
||
84 | |||
85 | /** |
||
86 | * Get whether or not to look for and use the application cache. |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function useCache() |
||
94 | |||
95 | /** |
||
96 | * Set whether or not to use an existing cache. |
||
97 | * |
||
98 | * @param bool $useCache |
||
99 | */ |
||
100 | public function setUseCache($useCache) |
||
104 | |||
105 | /** |
||
106 | * Handle application wide flags. |
||
107 | * |
||
108 | * @param InputInterface $input |
||
109 | */ |
||
110 | private function handleApplicationFlags(InputInterface $input) |
||
115 | |||
116 | /// |
||
117 | // Container Settings |
||
118 | /// |
||
119 | |||
120 | /** |
||
121 | * Get the Service container. |
||
122 | * |
||
123 | * @return Container |
||
124 | */ |
||
125 | public function getContainer() |
||
129 | |||
130 | /** |
||
131 | * Load the cached application container or build a new one. |
||
132 | * |
||
133 | * @param array $containerOptions |
||
134 | */ |
||
135 | private function loadContainer(array $containerOptions) |
||
149 | |||
150 | /** |
||
151 | * Build and compile the application container. |
||
152 | * |
||
153 | * @param string $cachePath |
||
154 | * @param array $containerOptions |
||
155 | */ |
||
156 | private function buildContainer($cachePath, array $containerOptions) |
||
178 | |||
179 | /** |
||
180 | * Create a cache directory if it doesn't exist. |
||
181 | */ |
||
182 | private function makeCacheDir() |
||
191 | } |
||
192 |