Merge pull request #794 from mcfedr/patch-1

Remove incorrect usage of hasOption
This commit is contained in:
William Durand 2016-02-24 17:51:24 +01:00
commit 4381f065cb

View File

@ -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)) {