本文整理汇总了PHP中Phing::getPhingVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP Phing::getPhingVersion方法的具体用法?PHP Phing::getPhingVersion怎么用?PHP Phing::getPhingVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Phing
的用法示例。
在下文中一共展示了Phing::getPhingVersion方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doReport
/**
* Print a report to the given stream.
*
* @param PrintStream $out the stream to print the report to.
*/
public static function doReport(PrintStream $out)
{
$out->println(str_pad('Phing diagnostics report', 79, "-", STR_PAD_BOTH));
self::header($out, "Version");
$out->println(Phing::getPhingVersion());
self::header($out, "Project properties");
self::doReportProjectProperties($out);
self::header($out, "System properties");
self::doReportSystemProperties($out);
self::header($out, "PHING_HOME/vendor package listing");
self::doReportPhingVendorLibraries($out);
self::header($out, "COMPOSER_HOME/vendor package listing");
self::doReportComposerSystemLibraries($out);
self::header($out, "Tasks availability");
self::doReportTasksAvailability($out);
self::header($out, "Temp dir");
self::doReportTempDir($out);
}
示例2: getPhingVersion
/**
* Get the minimum required phing version
* @return string
*/
public function getPhingVersion()
{
if ($this->phingVersion === null) {
$this->setPhingVersion(Phing::getPhingVersion());
}
return $this->phingVersion;
}
示例3: input_version
function input_version(AgaviOptionParser $parser, $name, $arguments, $scriptArguments)
{
$GLOBALS['OUTPUT']->write('Agavi project configuration system, script version $Id: agavi.php 4667 2011-05-20 12:34:58Z david $' . PHP_EOL);
$GLOBALS['OUTPUT']->write(Phing::getPhingVersion() . PHP_EOL);
exit(0);
}