From 8c336487e7a5f6bb10142f843052c1c2b4f75d42 Mon Sep 17 00:00:00 2001 From: Patrick Pokatilo Date: Tue, 15 Dec 2015 17:04:17 +0100 Subject: [PATCH] Check for deprecated method enterScope() in DumpCommand --- Command/DumpCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php index 862fd7796..b2521d8a0 100644 --- a/Command/DumpCommand.php +++ b/Command/DumpCommand.php @@ -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'); }