1 | <?php |
||
20 | class Application extends BaseApplication |
||
21 | { |
||
22 | /** @var bool */ |
||
23 | private $safeMode; |
||
24 | /** @var bool */ |
||
25 | private $useCache; |
||
26 | /** @var Container */ |
||
27 | private $container; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function run(InputInterface $input = null, OutputInterface $output = null) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | protected function getDefaultCommands() |
||
64 | |||
65 | /// |
||
66 | // Application Settings |
||
67 | /// |
||
68 | |||
69 | /** |
||
70 | * Get whether or not the application is being run in safe mode. |
||
71 | * |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function inSafeMode() |
||
78 | |||
79 | /** |
||
80 | * Set safe mode for the application. |
||
81 | * |
||
82 | * @param bool $safeMode |
||
83 | */ |
||
84 | public function setSafeMode($safeMode) |
||
88 | |||
89 | /** |
||
90 | * Get whether or not to look for and use the application cache. |
||
91 | * |
||
92 | * @return bool |
||
93 | */ |
||
94 | public function useCache() |
||
98 | |||
99 | /** |
||
100 | * Set whether or not to use an existing cache. |
||
101 | * |
||
102 | * @param bool $useCache |
||
103 | */ |
||
104 | public function setUseCache($useCache) |
||
108 | |||
109 | /** |
||
110 | * Handle application wide flags. |
||
111 | * |
||
112 | * @param InputInterface $input |
||
113 | */ |
||
114 | private function handleApplicationFlags(InputInterface $input) |
||
119 | |||
120 | /// |
||
121 | // Container Settings |
||
122 | /// |
||
123 | |||
124 | /** |
||
125 | * Get the Service container. |
||
126 | * |
||
127 | * @return Container |
||
128 | */ |
||
129 | public function getContainer() |
||
133 | |||
134 | /** |
||
135 | * Load the cached application container or build a new one. |
||
136 | * |
||
137 | * @param array $containerOptions |
||
138 | * |
||
139 | * @throws \Exception |
||
140 | */ |
||
141 | private function loadContainer(array $containerOptions) |
||
149 | } |
||
150 |