Merge pull request #768 from SHyx0rmZ/fix-sf-30-dump-command-enter-scope

Check for deprecated method enterScope() in DumpCommand
This commit is contained in:
William Durand 2015-12-16 16:17:51 +01:00
commit 1ae2cfa9a5

View File

@ -61,7 +61,7 @@ class DumpCommand extends ContainerAwareCommand
$formatter->setEnableSandbox(false);
}
if ('html' === $format) {
if ('html' === $format && method_exists($this->getContainer(), 'enterScope')) {
$this->getContainer()->enterScope('request');
$this->getContainer()->set('request', new Request(), 'request');
}