mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Merge pull request #794 from mcfedr/patch-1
Remove incorrect usage of hasOption
This commit is contained in:
commit
4381f065cb
@ -47,7 +47,7 @@ class DumpCommand extends ContainerAwareCommand
|
||||
|
||||
$routeCollection = $this->getContainer()->get('router')->getRouteCollection();
|
||||
|
||||
if (!$input->hasOption('format') || in_array($format, array('json'))) {
|
||||
if ($format == 'json') {
|
||||
$formatter = $this->getContainer()->get('nelmio_api_doc.formatter.simple_formatter');
|
||||
} else {
|
||||
if (!in_array($format, $this->availableFormats)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user