kamil-bednarek / errsy

ERRSY - Symfony3 error catcher application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Insight] Commented code should not be committed - in web/app.php, line 16

kamil-bednarek opened this issue · comments

in web/app.php, line 16

Commented out code reduces readability and lowers the code confidence for other developers. If it's common usage for debug, it should not be committed. Using a version control system, such code can be safely removed.

$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);

// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);

Posted from SensioLabsInsight