Completed
Push — master ( 985011...27fff5 )
by Tobias
17:41 queued 07:46
created

web/app_dev.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
use Symfony\Component\Debug\Debug;
4
use Symfony\Component\HttpFoundation\Request;
5
6
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
7
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
8
// for more information
9
//umask(0000);
10
11
// This check prevents access to debug front controllers that are deployed by accident to production servers.
12
// Feel free to remove this, extend it, or make something more sophisticated.
13
if (isset($_SERVER['HTTP_CLIENT_IP'])
14
    || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
15
    || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'], true) || PHP_SAPI === 'cli-server')
16
) {
17
    header('HTTP/1.0 403 Forbidden');
18
    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
19
}
20
21
require __DIR__.'/../vendor/autoload.php';
22
Debug::enable();
23
24
$kernel = new AppKernel('dev', true);
25
if (PHP_VERSION_ID < 70000) {
26
    $kernel->loadClassCache();
0 ignored issues
show
Deprecated Code introduced by
The method Symfony\Component\HttpKe...ernel::loadClassCache() has been deprecated with message: since version 3.3, to be removed in 4.0.

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
27
}
28
$request = Request::createFromGlobals();
29
$response = $kernel->handle($request);
30
$response->send();
31
$kernel->terminate($request, $response);
32