Issues (346)

code/public/index.php (3 issues)

Labels
Severity
1
<?php
2
3
use App\Kernel;
4
use Symfony\Component\Dotenv\Dotenv;
0 ignored issues
show
The type Symfony\Component\Dotenv\Dotenv 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

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\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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
require dirname(__DIR__).'/vendor/autoload.php';
9
10
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
11
12
if ($_SERVER['APP_DEBUG']) {
13
    umask(0000);
14
15
    Debug::enable();
16
}
17
18
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
19
$request = Request::createFromGlobals();
20
$response = $kernel->handle($request);
21
$response->send();
22
$kernel->terminate($request, $response);
23