1 | <?php |
||
30 | class Application extends Container |
||
31 | { |
||
32 | /** |
||
33 | * The FastD version. |
||
34 | * |
||
35 | * @const string |
||
36 | */ |
||
37 | const VERSION = '3.1.0'; |
||
38 | |||
39 | /** |
||
40 | * @var Application |
||
41 | */ |
||
42 | public static $app; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $path; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $name; |
||
53 | |||
54 | /** |
||
55 | * @var bool |
||
56 | */ |
||
57 | protected $booted = false; |
||
58 | |||
59 | /** |
||
60 | * AppKernel constructor. |
||
61 | * |
||
62 | * @param $path |
||
63 | */ |
||
64 | 61 | public function __construct($path) |
|
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | 61 | public function getName() |
|
82 | |||
83 | /** |
||
84 | * @return bool |
||
85 | */ |
||
86 | 5 | public function isBooted() |
|
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | 61 | public function getPath() |
|
98 | |||
99 | 61 | public function bootstrap() |
|
116 | |||
117 | /** |
||
118 | * @param ServiceProviderInterface[] $services |
||
119 | */ |
||
120 | 61 | protected function registerServicesProviders(array $services) |
|
127 | |||
128 | 61 | protected function registerExceptionHandler() |
|
138 | |||
139 | /** |
||
140 | * @param ServerRequestInterface $request |
||
141 | * |
||
142 | * @return Response |
||
143 | */ |
||
144 | 17 | public function handleRequest(ServerRequestInterface $request) |
|
163 | |||
164 | /** |
||
165 | * @param Response $response |
||
166 | */ |
||
167 | 5 | public function handleResponse(Response $response) |
|
171 | |||
172 | /** |
||
173 | * @param $e |
||
174 | */ |
||
175 | 9 | public function handleException($e) |
|
194 | |||
195 | /** |
||
196 | * @param Exception $e |
||
197 | * |
||
198 | * @return Response |
||
199 | */ |
||
200 | 10 | public function renderException(Exception $e) |
|
210 | |||
211 | /** |
||
212 | * @return int |
||
213 | */ |
||
214 | 3 | public function run() |
|
224 | |||
225 | /** |
||
226 | * @param ServerRequestInterface $request |
||
227 | * @param ResponseInterface $response |
||
228 | * |
||
229 | * @return int |
||
230 | */ |
||
231 | 8 | public function shutdown(ServerRequestInterface $request, ResponseInterface $response) |
|
240 | } |
||
241 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.