1 | <?php |
||||
2 | /** |
||||
3 | * @package CleverStyle Framework |
||||
4 | * @author Nazar Mokrynskyi <[email protected]> |
||||
5 | * @license 0BSD |
||||
6 | */ |
||||
7 | /** |
||||
8 | * Requirements: |
||||
9 | * * Apache2 |
||||
10 | * Apache2 modules MUST be enabled: |
||||
11 | * * rewrite |
||||
12 | * * headers |
||||
13 | * Optional Apache2 modules: |
||||
14 | * * expires |
||||
15 | * * or Nginx |
||||
16 | * * PHP 7.0+ |
||||
17 | * PHP libraries MUST be present: |
||||
18 | * * cURL |
||||
19 | * Optional PHP libraries: |
||||
20 | * * APCu, Memcached |
||||
21 | * * MySQL 5.6+ |
||||
22 | * * or MariaDB 10.0.5+ |
||||
23 | */ |
||||
24 | namespace cs; |
||||
25 | |||||
26 | if (version_compare(PHP_VERSION, '7.0', '<')) { |
||||
27 | echo 'CleverStyle Framework requires PHP 7.0 or higher'; |
||||
28 | return; |
||||
29 | } |
||||
30 | |||||
31 | require_once __DIR__.'/core/bootstrap.php'; |
||||
32 | |||||
33 | try { |
||||
34 | Response::instance()->init_with_typical_default_settings(); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
35 | Request::instance()->init_from_globals(); |
||||
36 | App::instance()->execute(); |
||||
37 | } catch (ExitException $e) { |
||||
38 | if ($e->getCode() >= 400) { |
||||
39 | Page::instance()->error($e->getMessage() ?: null, $e->getJson()); |
||||
40 | } |
||||
41 | } |
||||
42 | Response::instance()->output_default(); |
||||
0 ignored issues
–
show
The method
output_default() does not exist on cs\False_class . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
43 |