Skip to content

Commit

Permalink
Make hub address configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Nov 7, 2023
1 parent d8c0e02 commit 70c094d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Cms/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,11 @@ public function register(string $license = null, string $email = null): bool
throw new InvalidArgumentException(['key' => 'license.email']);
}

// get the hub address
$hub = option('hub', 'https://hub.getkirby.com');

Check failure on line 488 in src/Cms/System.php

View workflow job for this annotation

GitHub Actions / Unit tests - PHP 8.1

HelperFunctionUse

src/Cms/System.php:488:10: HelperFunctionUse: Use of user-overridable Kirby helper "option"

Check failure on line 488 in src/Cms/System.php

View workflow job for this annotation

GitHub Actions / Unit tests - PHP 8.2

HelperFunctionUse

src/Cms/System.php:488:10: HelperFunctionUse: Use of user-overridable Kirby helper "option"

Check failure on line 488 in src/Cms/System.php

View workflow job for this annotation

GitHub Actions / Unit tests - PHP 8.3

HelperFunctionUse

src/Cms/System.php:488:10: HelperFunctionUse: Use of user-overridable Kirby helper "option"

// @codeCoverageIgnoreStart
$response = Remote::get('http://hub.getkirby.test/register', [
$response = Remote::get($hub . '/register', [
'data' => [
'license' => $license,
'email' => Str::lower(trim($email)),
Expand Down

0 comments on commit 70c094d

Please sign in to comment.