Skip to content

Commit

Permalink
Merge pull request #768 from SHyx0rmZ/fix-sf-30-dump-command-enter-scope
Browse files Browse the repository at this point in the history
Check for deprecated method enterScope() in DumpCommand
  • Loading branch information
willdurand committed Dec 16, 2015
2 parents 93b189b + 8c33648 commit 1ae2cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/DumpCommand.php
Original file line number Diff line number Diff line change
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 1ae2cfa

Please sign in to comment.