AboutCommand.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Command;
  12. use Symfony\Component\Console\Input\InputInterface;
  13. use Symfony\Component\Console\Output\OutputInterface;
  14. /**
  15. * @author Jordi Boggiano <j.boggiano@seld.be>
  16. */
  17. class AboutCommand extends BaseCommand
  18. {
  19. protected function configure()
  20. {
  21. $this
  22. ->setName('about')
  23. ->setDescription('Shows the short information about Composer.')
  24. ->setHelp(
  25. <<<EOT
  26. <info>php composer.phar about</info>
  27. EOT
  28. )
  29. ;
  30. }
  31. protected function execute(InputInterface $input, OutputInterface $output)
  32. {
  33. $this->getIO()->write(
  34. <<<EOT
  35. <info>Composer - Dependency Manager for PHP</info>
  36. <comment>Composer is a dependency manager tracking local dependencies of your projects and libraries.
  37. See https://getcomposer.org/ for more information.</comment>
  38. EOT
  39. );
  40. return 0;
  41. }
  42. }