Skip to content

Commit

Permalink
Check for deprecated method enterScope() in DumpCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
SHyx0rmZ committed Dec 15, 2015
1 parent 93b189b commit 8c33648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/DumpCommand.php
Expand Up @@ -61,7 +61,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$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');
}
Expand Down

0 comments on commit 8c33648

Please sign in to comment.