1 | <?php |
||
25 | class Application extends BaseApplication |
||
26 | { |
||
27 | /** @var bool */ |
||
28 | private $safeMode; |
||
29 | /** @var bool */ |
||
30 | private $useCache; |
||
31 | /** @var Container */ |
||
32 | private $container; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function run(InputInterface $input = null, OutputInterface $output = null) |
||
57 | |||
58 | /// |
||
59 | // Application Settings |
||
60 | /// |
||
61 | |||
62 | /** |
||
63 | * Get whether or not the application is being run in safe mode. |
||
64 | * |
||
65 | * @return bool |
||
66 | */ |
||
67 | public function inSafeMode() |
||
71 | |||
72 | /** |
||
73 | * Set safe mode for the application. |
||
74 | * |
||
75 | * @param bool $safeMode |
||
76 | */ |
||
77 | public function setSafeMode($safeMode) |
||
81 | |||
82 | /** |
||
83 | * Get whether or not to look for and use the application cache. |
||
84 | * |
||
85 | * @return bool |
||
86 | */ |
||
87 | public function useCache() |
||
91 | |||
92 | /** |
||
93 | * Set whether or not to use an existing cache. |
||
94 | * |
||
95 | * @param bool $useCache |
||
96 | */ |
||
97 | public function setUseCache($useCache) |
||
101 | |||
102 | /** |
||
103 | * Handle application wide flags. |
||
104 | * |
||
105 | * @param InputInterface $input |
||
106 | */ |
||
107 | private function handleApplicationFlags(InputInterface $input) |
||
112 | |||
113 | /// |
||
114 | // Container Settings |
||
115 | /// |
||
116 | |||
117 | /** |
||
118 | * Get the Service container. |
||
119 | * |
||
120 | * @return Container |
||
121 | */ |
||
122 | public function getContainer() |
||
126 | |||
127 | /** |
||
128 | * Load the cached application container or build a new one. |
||
129 | * |
||
130 | * @param array $containerOptions |
||
131 | */ |
||
132 | private function loadContainer(array $containerOptions) |
||
146 | |||
147 | /** |
||
148 | * Build and compile the application container. |
||
149 | * |
||
150 | * @param string $cachePath |
||
151 | * @param array $containerOptions |
||
152 | */ |
||
153 | private function buildContainer($cachePath, array $containerOptions) |
||
170 | |||
171 | /** |
||
172 | * Create a cache directory if it doesn't exist. |
||
173 | */ |
||
174 | private function makeCacheDir() |
||
183 | } |
||
184 |