Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / stecman / symfony-console-completion / src / CompletionCommand.php
index b51666a1dee2ac5e39a97df83ad1bc8e6b995bab..0a4a8090e732c6cb581bc6f49f766d7bf2513e34 100644 (file)
@@ -33,6 +33,12 @@ Or for an alias:
 
 END
             );
+
+        // Hide this command from listing if supported
+        // Command::setHidden() was not available before Symfony 3.2.0
+        if (method_exists($this, 'setHidden')) {
+            $this->setHidden(true);
+        }
     }
 
     /**
@@ -56,8 +62,7 @@ END
             $alias = $input->getOption('program');
             $multiple = (bool)$input->getOption('multiple');
 
-            // When completing for multiple apps having absolute path in the alias doesn't make sense.
-            if (!$alias && $multiple) {
+            if (!$alias) {
                 $alias = basename($program);
             }