Update aldarien dependencies

This commit is contained in:
Aldarien
2023-02-10 06:38:16 +00:00
parent d6f58893b6
commit bb1d2b2159
9 changed files with 18 additions and 17 deletions

View File

@ -7,7 +7,7 @@
"aldarien/contract" : "*"
},
"require-dev" : {
"phpunit/phpunit" : "^6.3"
"phpunit/phpunit" : "*"
},
"license" : "MIT",
"authors" : [{

View File

@ -12,7 +12,7 @@
"require": {
"aldarien/contract": "*",
"aldarien/root": "*",
"symfony/yaml": "^3.3"
"symfony/yaml": "*"
},
"autoload": {
"psr-4": {

View File

@ -3,7 +3,7 @@
"description" : "Module for formatting data, mostly numbers",
"type" : "library",
"require-dev" : {
"phpunit/phpunit" : "^6",
"phpunit/phpunit" : "*",
"aldarien/config": "*"
},
"license" : "MIT",

View File

@ -3,11 +3,11 @@
"description" : "Response handler module for my apps",
"type" : "library",
"require" : {
"wixel/gump" : "^1.5",
"wixel/gump" : "*",
"aldarien/contract" : "*"
},
"require-dev" : {
"phpunit/phpunit" : "^6.3"
"phpunit/phpunit" : "*"
},
"license" : "MIT",
"authors" : [{

View File

@ -7,8 +7,8 @@
],
"license": "MIT",
"require-dev" : {
"phpunit/phpunit" : "~6",
"kint-php/kint" : "~2"
"phpunit/phpunit" : "*",
"kint-php/kint" : "*"
},
"autoload" : {
"psr-4" : {
@ -18,4 +18,4 @@
"app/Helper/functions.php"
]
}
}
}

View File

@ -3,11 +3,11 @@
"description": "Session wrapper for aura/session",
"type": "library",
"require": {
"aura/session": "^2.1",
"aura/session": "*",
"aldarien/contract": "*"
},
"require-dev": {
"phpunit/phpunit": "^6.3"
"phpunit/phpunit": "*"
},
"license": "MIT",
"authors": [

View File

@ -19,7 +19,8 @@ class URL
protected function findRoot()
{
$base = $_SERVER['HTTP_HOST'] . ((isset($_SERVER['HTTP_PORT'])) ? ':' . $_SERVER['HTTP_PORT'] : '');
$uri = Http::createFromString(\Sabre\Uri\resolve($_SERVER['REQUEST_SCHEME'] . '://' . $base, $_SERVER['SCRIPT_NAME']));
$scheme = $_SERVER['HTTPS'] ? 'https' : 'http';
$uri = Http::createFromString(\Sabre\Uri\resolve($scheme . '://' . $base, $_SERVER['SCRIPT_NAME']));
$host = new Host($uri->getHost());
if ($host->isAbsolute()) {
return $host->getRegistrableDomain();
@ -73,4 +74,4 @@ class URL
return $url;
}
}
?>
?>

View File

@ -5,11 +5,11 @@
"require" : {
"aldarien/contract" : "*",
"aldarien/root" : "*",
"league/uri": "^5.2",
"sabre/uri": "^2.1"
"league/uri": "*",
"sabre/uri": "*"
},
"require-dev" : {
"phpunit/phpunit" : "^6.3"
"phpunit/phpunit" : "*"
},
"license" : "MIT",
"authors" : [{

View File

@ -3,7 +3,7 @@
"description": "View module for my apps",
"type": "library",
"require": {
"philo/laravel-blade": "^3.1",
"philo/laravel-blade": "*",
"aldarien/contract": "*",
"aldarien/config": "*"
},
@ -23,6 +23,6 @@
]
},
"require-dev": {
"phpunit/phpunit": "^6.3"
"phpunit/phpunit": "*"
}
}