mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Update config references
This commit is contained in:
@@ -183,7 +183,7 @@ class EnvironmentManager
|
||||
$checker = new RequirementsChecker();
|
||||
|
||||
$phpSupportInfo = $checker->checkPHPVersion(
|
||||
config('crater.min_php_version')
|
||||
config('invoiceshelf.min_php_version')
|
||||
);
|
||||
|
||||
if (! $phpSupportInfo['supported']) {
|
||||
@@ -202,14 +202,14 @@ class EnvironmentManager
|
||||
$conn = pg_connect("host={$request->database_hostname} port={$request->database_port} dbname={$request->database_name} user={$request->database_username} password={$request->database_password}");
|
||||
$dbSupportInfo = $checker->checkPgsqlVersion(
|
||||
$conn,
|
||||
config('crater.min_pgsql_version')
|
||||
config('invoiceshelf.min_pgsql_version')
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
case 'sqlite':
|
||||
$dbSupportInfo = $checker->checkSqliteVersion(
|
||||
config('crater.min_sqlite_version')
|
||||
config('invoiceshelf.min_sqlite_version')
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
@@ -129,7 +129,7 @@ class RequirementsChecker
|
||||
|
||||
$isMariaDb = Str::contains($version_info, 'MariaDB');
|
||||
|
||||
$minVersionMysql = $isMariaDb ? config('crater.min_mariadb_version') : config('crater.min_mysql_version');
|
||||
$minVersionMysql = $isMariaDb ? config('invoiceshelf.min_mariadb_version') : config('invoiceshelf.min_mysql_version');
|
||||
|
||||
$currentMysqlVersion = $this->getMysqlVersionInfo($conn);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ trait SiteApi
|
||||
{
|
||||
protected static function getRemote($url, $data = [], $token = null)
|
||||
{
|
||||
$client = new Client(['verify' => false, 'base_uri' => config('crater.base_url').'/']);
|
||||
$client = new Client(['verify' => false, 'base_uri' => config('invoiceshelf.base_url').'/']);
|
||||
|
||||
$headers['headers'] = [
|
||||
'Accept' => 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user