Fix config load path
This commit is contained in:
13
composer.lock
generated
13
composer.lock
generated
@@ -1896,16 +1896,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit-mock-objects",
|
"name": "phpunit/phpunit-mock-objects",
|
||||||
"version": "3.2.0",
|
"version": "3.2.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
|
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
|
||||||
"reference": "314f8c44019b4dfece2571b98938574e6342be59"
|
"reference": "0dc8fd8e87e0366c22b6c25d1f43c4e2e66847b3"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/314f8c44019b4dfece2571b98938574e6342be59",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/0dc8fd8e87e0366c22b6c25d1f43c4e2e66847b3",
|
||||||
"reference": "314f8c44019b4dfece2571b98938574e6342be59",
|
"reference": "0dc8fd8e87e0366c22b6c25d1f43c4e2e66847b3",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1914,6 +1914,9 @@
|
|||||||
"phpunit/php-text-template": "^1.2",
|
"phpunit/php-text-template": "^1.2",
|
||||||
"sebastian/exporter": "^1.2"
|
"sebastian/exporter": "^1.2"
|
||||||
},
|
},
|
||||||
|
"conflict": {
|
||||||
|
"phpunit/phpunit": "<5.4.0"
|
||||||
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^5.4"
|
"phpunit/phpunit": "^5.4"
|
||||||
},
|
},
|
||||||
@@ -1948,7 +1951,7 @@
|
|||||||
"mock",
|
"mock",
|
||||||
"xunit"
|
"xunit"
|
||||||
],
|
],
|
||||||
"time": "2016-06-03 05:01:30"
|
"time": "2016-06-04 05:52:19"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "rych/bytesize",
|
"name": "rych/bytesize",
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ function normalizePath($path) {
|
|||||||
* @return string|null Resolves to the config path or null.
|
* @return string|null Resolves to the config path or null.
|
||||||
*/
|
*/
|
||||||
function getConfigPath() {
|
function getConfigPath() {
|
||||||
$paths = isPhar() ? [substr(dirname(Phar::running(true)), strlen("phar://")) . "acme-client.yml"] : [];
|
$paths = isPhar() ? [substr(dirname(Phar::running(true)), strlen("phar://")) . "/acme-client.yml"] : [];
|
||||||
|
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||||
if ($home = getenv("HOME")) {
|
if ($home = getenv("HOME")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user