diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php index b2521d8..a4ab80d 100644 --- a/Command/DumpCommand.php +++ b/Command/DumpCommand.php @@ -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)) {