for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hirak\Prestissimo;
use Composer\Composer;
use Composer\Config;
class ConfigFacade
{
/** @var Config */
private $config;
public function __construct(Config $config)
$this->config = $config;
}
public static function getUserAgent()
static $ua;
if ($ua) {
return $ua;
if (defined('HHVM_VERSION')) {
$phpVersion = 'HHVM ' . HHVM_VERSION;
} else {
$phpVersion = 'PHP ' . PHP_VERSION;
return $ua = sprintf(
'Composer/%s (%s; %s; %s)',
Composer::VERSION === '@package_version@' ? 'source' : Composer::VERSION,
php_uname('s'),
php_uname('r'),
$phpVersion
);
public function __debugInfo()
return array(