mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-16 06:55:56 +00:00
Merge branch 'master' into update-cli-output
This commit is contained in:
4
.github/workflows/run-tests.yml
vendored
4
.github/workflows/run-tests.yml
vendored
@@ -8,8 +8,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-latest, ubuntu-latest]
|
||||||
php: [7.4, 8.0, 8.1]
|
php: [8.0, 8.1]
|
||||||
stability: [prefer-stable]
|
stability: [prefer-stable]
|
||||||
|
|
||||||
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
|
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM php:7.4-cli
|
FROM php:8.0-cli
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y git libzip-dev zip
|
RUN apt-get install -y git libzip-dev zip
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ class Configuration
|
|||||||
return $this->serverHost;
|
return $this->serverHost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setServerHost($serverHost)
|
||||||
|
{
|
||||||
|
$this->serverHost = $serverHost;
|
||||||
|
}
|
||||||
|
|
||||||
public function auth(): ?string
|
public function auth(): ?string
|
||||||
{
|
{
|
||||||
return $this->auth;
|
return $this->auth;
|
||||||
@@ -45,11 +50,6 @@ class Configuration
|
|||||||
return intval($this->port);
|
return intval($this->port);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setServerHost($host)
|
|
||||||
{
|
|
||||||
$this->serverHost = $host;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUrl(string $subdomain): string
|
public function getUrl(string $subdomain): string
|
||||||
{
|
{
|
||||||
$httpProtocol = $this->port() === 443 ? 'https' : 'http';
|
$httpProtocol = $this->port() === 443 ? 'https' : 'http';
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ class Factory
|
|||||||
protected function registerStatisticsCollector()
|
protected function registerStatisticsCollector()
|
||||||
{
|
{
|
||||||
if (config('expose.admin.statistics.enable_statistics', true) === false) {
|
if (config('expose.admin.statistics.enable_statistics', true) === false) {
|
||||||
return;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
app()->singleton(StatisticsRepository::class, function () {
|
app()->singleton(StatisticsRepository::class, function () {
|
||||||
|
|||||||
BIN
builds/expose
BIN
builds/expose
Binary file not shown.
@@ -16,9 +16,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.3.0 || ^8.0",
|
"php": "^8.0",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"padraic/phar-updater": "^1.0.6"
|
"laravel-zero/phar-updater": "^1.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"cboden/ratchet": "^0.4.3",
|
"cboden/ratchet": "^0.4.3",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'version' => '2.1.0',
|
'version' => '2.1.2',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user