"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Composer/Command/AboutCommand.php" between
composer-2.1.2.tar.gz and composer-2.1.3.tar.gz

About: Composer helps you declare, manage, and install dependencies of PHP projects.

AboutCommand.php  (composer-2.1.2):AboutCommand.php  (composer-2.1.3)
skipping to change at line 15 skipping to change at line 15
* *
* (c) Nils Adermann <naderman@naderman.de> * (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be> * Jordi Boggiano <j.boggiano@seld.be>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Composer\Command; namespace Composer\Command;
use Composer\Composer;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
/** /**
* @author Jordi Boggiano <j.boggiano@seld.be> * @author Jordi Boggiano <j.boggiano@seld.be>
*/ */
class AboutCommand extends BaseCommand class AboutCommand extends BaseCommand
{ {
protected function configure() protected function configure()
{ {
$this $this
->setName('about') ->setName('about')
->setDescription('Shows the short information about Composer.') ->setDescription('Shows a short information about Composer.')
->setHelp( ->setHelp(
<<<EOT <<<EOT
<info>php composer.phar about</info> <info>php composer.phar about</info>
EOT EOT
) )
; ;
} }
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
$composerVersion = Composer::getVersion();
$this->getIO()->write( $this->getIO()->write(
<<<EOT <<<EOT
<info>Composer - Dependency Manager for PHP</info> <info>Composer - Dependency Manager for PHP - version $composerVersion</info>
<comment>Composer is a dependency manager tracking local dependencies of your pr ojects and libraries. <comment>Composer is a dependency manager tracking local dependencies of your pr ojects and libraries.
See https://getcomposer.org/ for more information.</comment> See https://getcomposer.org/ for more information.</comment>
EOT EOT
); );
return 0; return 0;
} }
} }
 End of changes. 4 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)