mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Check for deprecated method enterScope() in DumpCommand
This commit is contained in:
parent
93b189b16a
commit
8c336487e7
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user