本文整理汇总了PHP中Symfony\Component\Console\Application::getLongVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::getLongVersion方法的具体用法?PHP Application::getLongVersion怎么用?PHP Application::getLongVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symfony\Component\Console\Application
的用法示例。
在下文中一共展示了Application::getLongVersion方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getLongVersion
public function getLongVersion()
{
$version = parent::getLongVersion() . ' by <comment>Fabien Potencier</comment>';
if ('@' . 'git-commit@' !== ($commit = '@git-commit@')) {
$version .= ' (' . substr($commit, 0, 7) . ')';
}
return $version;
}
示例2: getLongVersion
public function getLongVersion()
{
$version = parent::getLongVersion();
$commit = '@git-commit@';
if ('@' . 'git-commit@' !== $commit) {
$version .= ' (' . substr($commit, 0, 7) . ')';
}
return $version;
}
示例3: getLongVersion
public function getLongVersion()
{
$version = parent::getLongVersion();
$commit = '@git-commit-short@';
if ('@' . 'git-commit-short@' !== $commit) {
$version .= " ({$commit})";
}
return $version . ' by <comment>Stefano Torresi</comment>';
}
示例4: getLongVersion
public function getLongVersion()
{
$version = parent::getLongVersion() . ' by <comment>Fabien Potencier</comment>';
$commit = '41f70154642ec0f9ea9ea9c290943f3b5dfa76fc';
if ('@' . 'git-commit@' !== $commit) {
$version .= ' (' . substr($commit, 0, 7) . ')';
}
return $version;
}
示例5: getLongVersion
/**
* @return string
*/
public function getLongVersion()
{
$version = parent::getLongVersion() . ' by <comment>Ivan Shcherbak</comment>';
$commit = '@git-commit@';
if ('@' . 'git-commit@' !== $commit) {
$version .= ' (' . substr($commit, 0, 7) . ')';
}
return $version;
}
示例6: getLongVersion
public function getLongVersion()
{
$bigtext = <<<'BIGTEXT'
/$$$$$$$ /$$
| $$__ $$| $$
| $$ \ $$| $$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$
| $$$$$$$/| $$__ $$ /$$__ $$ /$$__ $$ /$$__ $$| $$ /$$//$$__ $$ /$$__ $$
| $$____/ | $$ \ $$| $$ \ $$| $$ \__/| $$$$$$$$ \ $$/$$/| $$$$$$$$| $$ \__/
| $$ | $$ | $$| $$ | $$| $$ | $$_____/ \ $$$/ | $$_____/| $$
| $$ | $$ | $$| $$$$$$/| $$ | $$$$$$$ \ $/ | $$$$$$$| $$
|__/ |__/ |__/ \______/ |__/ \_______/ \_/ \_______/|__/
BIGTEXT;
return "<comment>{$bigtext}</comment>\n\n" . parent::getLongVersion();
}
示例7: getLongVersion
public function getLongVersion()
{
$version = parent::getLongVersion() . ' by <comment>Andrew Reddikh</comment>';
return $version;
}
示例8: getLongVersion
/**
* {@inheritDoc}
*/
public function getLongVersion()
{
return parent::getLongVersion() . ' ' . Composer::RELEASE_DATE;
}
示例9: getLongVersion
public function getLongVersion()
{
return parent::getLongVersion() . ' by <comment>Hannes Van De Vreken & Freek Van der Herten</comment>';
}
示例10: getLongVersion
public function getLongVersion()
{
return self::$logo . parent::getLongVersion();
}
示例11: getLongVersion
/**
* {@inheritDoc}
*/
public function getLongVersion()
{
return parent::getLongVersion() . ' ' . Virtphp::RELEASE_DATE;
}
示例12: getLongVersion
/**
* {@inheritDoc}
*/
public function getLongVersion()
{
if (Composer::BRANCH_ALIAS_VERSION) {
return sprintf('<info>%s</info> version <comment>%s (%s)</comment> %s', $this->getName(), Composer::BRANCH_ALIAS_VERSION, $this->getVersion(), Composer::RELEASE_DATE);
}
return parent::getLongVersion() . ' ' . Composer::RELEASE_DATE;
}
示例13: getLongVersion
/**
* {@inheritdoc}
*/
public function getLongVersion()
{
return parent::getLongVersion() . sprintf(' (kernel: <comment>%s</>, env: <comment>%s</>, debug: <comment>%s</>)', $this->kernel->getName(), $this->kernel->getEnvironment(), $this->kernel->isDebug() ? 'true' : 'false');
}
示例14: getLongVersion
public function getLongVersion()
{
return parent::getLongVersion() . ' ' . Dotfiles::RELEASE_DATE;
}
示例15: getLongVersion
/**
* @return string
*/
public function getLongVersion()
{
$version = parent::getLongVersion() . ' by <comment>Rebangm</comment>';
return $version;
}