wealthbot-io/wealthbot

[Insight] Exceptions should not be enabled in production - in web/app.php, line 8

Closed this issue · 1 comments

in web/app.php, line 8

This production application kernel is initialized in debug mode (second parameter to true, which allows the display of exceptions.

/**
 * @var Composer\Autoload\ClassLoader
 */
$loader = require __DIR__.'/../app/autoload.php';
include_once __DIR__.'/../app/bootstrap.php.cache';
$kernel = new AppKernel('prod', true);
$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();

Posted from SensioLabsInsight

This can be closed after merging 2.8 branch.!