Skip to content

Commit

Permalink
Merge 87bae02 into 783e717
Browse files Browse the repository at this point in the history
  • Loading branch information
hirak committed May 21, 2016
2 parents 783e717 + 87bae02 commit f63401b
Show file tree
Hide file tree
Showing 35 changed files with 1,121 additions and 1,543 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ phpcs.xml
phpdox.xml
artifacts
!artifacts/index.html
tags
75 changes: 39 additions & 36 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 0 additions & 29 deletions res/config-schema.json

This file was deleted.

38 changes: 0 additions & 38 deletions res/nss_ciphers.txt

This file was deleted.

42 changes: 0 additions & 42 deletions src/Config.php

This file was deleted.

43 changes: 43 additions & 0 deletions src/ConfigFacade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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(
);
}
}

0 comments on commit f63401b

Please sign in to comment.