Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/src/Psy/Command/PsyVersionCommand.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 /* | |
4 * This file is part of Psy Shell. | |
5 * | |
6 * (c) 2012-2017 Justin Hileman | |
7 * | |
8 * For the full copyright and license information, please view the LICENSE | |
9 * file that was distributed with this source code. | |
10 */ | |
11 | |
12 namespace Psy\Command; | |
13 | |
14 use Symfony\Component\Console\Input\InputInterface; | |
15 use Symfony\Component\Console\Output\OutputInterface; | |
16 | |
17 /** | |
18 * A dumb little command for printing out the current Psy Shell version. | |
19 */ | |
20 class PsyVersionCommand extends Command | |
21 { | |
22 /** | |
23 * {@inheritdoc} | |
24 */ | |
25 protected function configure() | |
26 { | |
27 $this | |
28 ->setName('version') | |
29 ->setDefinition(array()) | |
30 ->setDescription('Show Psy Shell version.') | |
31 ->setHelp('Show Psy Shell version.'); | |
32 } | |
33 | |
34 /** | |
35 * {@inheritdoc} | |
36 */ | |
37 protected function execute(InputInterface $input, OutputInterface $output) | |
38 { | |
39 $output->writeln($this->getApplication()->getVersion()); | |
40 } | |
41 } |