X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FApplication.php;h=fb22aa39a3210335b4d244e0e6b5fb8fa747cbd5;hp=5085bb5d1bc00b860cb10626fcaf092e5ecb5be2;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;ds=sidebyside diff --git a/vendor/drupal/console/src/Application.php b/vendor/drupal/console/src/Application.php index 5085bb5d1..fb22aa39a 100644 --- a/vendor/drupal/console/src/Application.php +++ b/vendor/drupal/console/src/Application.php @@ -25,13 +25,35 @@ class Application extends BaseApplication /** * @var string */ - const VERSION = '1.0.0-rc16'; + const VERSION = '1.0.0-rc21'; public function __construct(ContainerInterface $container) { parent::__construct($container, $this::NAME, $this::VERSION); } + /** + * Returns the long version of the application. + * + * @return string The long application version + */ + public function getLongVersion() + { + $output = ''; + + if ('UNKNOWN' !== $this->getName()) { + if ('UNKNOWN' !== $this->getVersion()) { + $output .= sprintf('%s version %s', $this->getName(), $this->getVersion()); + } else { + $output .= sprintf('%s', $this->getName()); + } + } else { + $output .= 'Console Tool'; + } + + return $output; + } + /** * {@inheritdoc} */