gggeek /
db-3v4l
| 1 | <?php |
||
| 2 | |||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | use Db3v4l\Kernel; |
||
| 4 | use Symfony\Component\ErrorHandler\Debug; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\ErrorHandler\Debug was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 5 | use Symfony\Component\HttpFoundation\Request; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\HttpFoundation\Request was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 6 | |||
| 7 | require dirname(__DIR__).'/config/bootstrap.php'; |
||
| 8 | |||
| 9 | if ($_SERVER['APP_DEBUG']) { |
||
| 10 | umask(0000); |
||
| 11 | |||
| 12 | Debug::enable(); |
||
| 13 | } |
||
| 14 | |||
| 15 | if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) { |
||
| 16 | Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST); |
||
| 17 | } |
||
| 18 | |||
| 19 | if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) { |
||
| 20 | Request::setTrustedHosts([$trustedHosts]); |
||
| 21 | } |
||
| 22 | |||
| 23 | $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); |
||
| 24 | $request = Request::createFromGlobals(); |
||
| 25 | $response = $kernel->handle($request); |
||
| 26 | $response->send(); |
||
| 27 | $kernel->terminate($request, $response); |
||
| 28 |