فهرست منبع

added empty configuration command and updated the application class to pull it in for display

Joshua Estes 12 سال پیش
والد
کامیت
ec71674826
2فایلهای تغییر یافته به همراه36 افزوده شده و 0 حذف شده
  1. 35 0
      src/Composer/Command/ConfigCommand.php
  2. 1 0
      src/Composer/Console/Application.php

+ 35 - 0
src/Composer/Command/ConfigCommand.php

@@ -0,0 +1,35 @@
+<?php
+
+/*
+ * This file is part of Composer.
+ *
+ * (c) Nils Adermann <naderman@naderman.de>
+ *     Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Composer\Command;
+
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+class ConfigCommand extends Command
+{
+    protected function configure()
+    {
+        $this
+            ->setName('config')
+            ->setDescription('Manage config settings')
+            ->setHelp(<<<EOT
+
+EOT
+            )
+        ;
+    }
+
+    protected function execute(InputInterface $input, OutputInterface $output)
+    {
+    }
+}

+ 1 - 0
src/Composer/Console/Application.php

@@ -155,6 +155,7 @@ class Application extends BaseApplication
     {
         $commands = parent::getDefaultCommands();
         $commands[] = new Command\AboutCommand();
+        $commands[] = new Command\ConfigCommand();
         $commands[] = new Command\DependsCommand();
         $commands[] = new Command\InitCommand();
         $commands[] = new Command\InstallCommand();