How to disable dump() function,
when its in production environment?
If i forget the dump function anywhere It crashes with an 500 error
Veve's answer was good but I suggest to you to try the fllowing solution.
NB: this is just to unlock you. You should remove the dump() from your prod code!
In app/AppKernel.php add this:
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\DebugBundle\DebugBundle(),
new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(),
# code ...
];
# ...
}