davidyell / Learning-Symfony2

Learning Symfony2 by recreating a Stack Exchange website
MIT License
3 stars 0 forks source link

[Insight] Commented code should not be commited #20

Closed davidyell closed 10 years ago

davidyell commented 10 years ago

in web/app.php, line 7

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.

use Symfony\Component\HttpFoundation\Request;

$loader = require_once __DIR__.'/../app/bootstrap.php.cache';

require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';

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

Posted from SensioLabsInsight