mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
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:
commit
1ae2cfa9a5
@ -61,7 +61,7 @@ class DumpCommand extends ContainerAwareCommand
|
|||||||
$formatter->setEnableSandbox(false);
|
$formatter->setEnableSandbox(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('html' === $format) {
|
if ('html' === $format && method_exists($this->getContainer(), 'enterScope')) {
|
||||||
$this->getContainer()->enterScope('request');
|
$this->getContainer()->enterScope('request');
|
||||||
$this->getContainer()->set('request', new Request(), 'request');
|
$this->getContainer()->set('request', new Request(), 'request');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user