Only allow container dumping if env APP_CONTAINER_DUMP

This commit is contained in:
Benoît Burnichon
2015-12-18 16:06:22 +01:00
parent 985ec4a491
commit 4114b70003

View File

@@ -178,7 +178,9 @@ class Application extends SilexApplication
ini_set('log_errors', 'on');
ini_set('error_log', $this['root.path'].'/logs/php_error.log');
}
$this->register(new PimpleDumpProvider());
if ('allowed' == getenv('APP_CONTAINER_DUMP')) {
$this->register(new PimpleDumpProvider());
}
$this->register(new ConfigurationServiceProvider());
$this->register(new MonologServiceProvider());