public function initDebugging()
{
// Set the error_reporting to the level specified in config.yml
if (($errorLevel = $this['config']->get($this['debug'] ? 'general/debug_error_level' : 'production_error_level')) !== null) {
error_reporting($errorLevel);
}
$this->register(new Provider\DumperServiceProvider());
if (!$this['debug']) {
return;
}
// Initialize Web Profiler providers
$this->initProfiler();
}