AboutCommand.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 Command
  18. {
  19. protected function configure()
  20. {
  21. $this
  22. ->setName('about')
  23. ->setDescription('Short information about Composer')
  24. ->setHelp(<<<EOT
  25. <info>php composer.phar about</info>
  26. EOT
  27. )
  28. ;
  29. }
  30. protected function execute(InputInterface $input, OutputInterface $output)
  31. {
  32. $this->getIO()->write(<<<EOT
  33. <info>Composer - Package Management for PHP</info>
  34. <comment>Composer is a dependency manager tracking local dependencies of your projects and libraries.
  35. See https://getcomposer.org/ for more information.</comment>
  36. EOT
  37. );
  38. }
  39. }