1 | <?php |
||
14 | class Application |
||
15 | { |
||
16 | /** |
||
17 | * @var Map |
||
18 | */ |
||
19 | private $routerMap; |
||
20 | |||
21 | private $routerConfig = []; |
||
22 | private $siteConfig = []; |
||
23 | private $errorReporterConfig = []; |
||
24 | private $viewEngineConfig = []; |
||
25 | private $dbConfig = []; |
||
26 | |||
27 | private $errorReporters = []; |
||
|
|||
28 | |||
29 | /** |
||
30 | * Singleton: private constructor |
||
31 | */ |
||
32 | private function __construct() |
||
35 | |||
36 | /** |
||
37 | * @return Application |
||
38 | */ |
||
39 | public static function getInstance() |
||
49 | |||
50 | public function setSiteConfig(array $siteConfig) |
||
54 | |||
55 | public function setErrorReporterConfig(array $errorReporterConfig) |
||
59 | |||
60 | public function setDbConfig(array $dbConfig) |
||
64 | |||
65 | public function setViewEngineConfig(array $viewEngineConfig) |
||
69 | |||
70 | public function setDisplayError($isDisplay) |
||
75 | |||
76 | public function registerErrorReporters() |
||
83 | |||
84 | public function setRouterConfig(array $routerConfig) |
||
89 | |||
90 | private function buildRouterMap() |
||
97 | |||
98 | public function dispatcher(Request $request) |
||
113 | |||
114 | private function resolveUrl(Request $request) |
||
119 | |||
120 | private function executeController(Request $request, ParameterMap $parameterMap) |
||
125 | |||
126 | /** |
||
127 | * @param mixed $returnOfController |
||
128 | * @return View |
||
129 | */ |
||
130 | private function resolveView($returnOfController) |
||
135 | |||
136 | private function bindUrlParameter(ParameterMap $map, array $url) |
||
144 | |||
145 | private function bindViewModelParameter(ParameterMap $map, ViewModel $viewModel) |
||
149 | |||
150 | private function setViewVariables(View $view, array $var) |
||
156 | |||
157 | |||
158 | /** |
||
159 | * Return url path with site url |
||
160 | * @param string $url sub url |
||
161 | * @return string |
||
162 | */ |
||
163 | public function url($url = '') |
||
167 | |||
168 | |||
169 | /** |
||
170 | * @return EntityManager |
||
171 | */ |
||
172 | public function getEntityManager() |
||
180 | } |
||
181 |
This check marks private properties in classes that are never used. Those properties can be removed.