mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 23:23:42 -06:00
Updated to installer v4
This commit is contained in:
parent
b9eb9cb6d9
commit
f3f35218c3
@ -8,5 +8,5 @@ use function chdir;
|
|||||||
use function dirname;
|
use function dirname;
|
||||||
|
|
||||||
chdir(dirname(__DIR__));
|
chdir(dirname(__DIR__));
|
||||||
$run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
[$install] = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
||||||
$run(false);
|
$install();
|
||||||
|
@ -8,5 +8,5 @@ use function chdir;
|
|||||||
use function dirname;
|
use function dirname;
|
||||||
|
|
||||||
chdir(dirname(__DIR__));
|
chdir(dirname(__DIR__));
|
||||||
$run = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
[, $update] = require __DIR__ . '/../vendor/shlinkio/shlink-installer/bin/run.php';
|
||||||
$run(true);
|
$update();
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
"pugx/shortid-php": "^0.5",
|
"pugx/shortid-php": "^0.5",
|
||||||
"shlinkio/shlink-common": "^2.5",
|
"shlinkio/shlink-common": "^2.5",
|
||||||
"shlinkio/shlink-event-dispatcher": "^1.3",
|
"shlinkio/shlink-event-dispatcher": "^1.3",
|
||||||
"shlinkio/shlink-installer": "^3.3",
|
"shlinkio/shlink-installer": "^4.0",
|
||||||
"shlinkio/shlink-ip-geolocation": "^1.3",
|
"shlinkio/shlink-ip-geolocation": "^1.3",
|
||||||
"symfony/console": "^5.0",
|
"symfony/console": "^5.0",
|
||||||
"symfony/filesystem": "^5.0",
|
"symfony/filesystem": "^5.0",
|
||||||
|
@ -2,51 +2,42 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Shlinkio\Shlink\Installer\Config\Plugin;
|
use Shlinkio\Shlink\Installer\Config\Option;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'installer_plugins_expected_config' => [
|
'installer' => [
|
||||||
Plugin\UrlShortenerConfigCustomizer::class => [
|
'enabled_options' => [
|
||||||
Plugin\UrlShortenerConfigCustomizer::SCHEMA,
|
Option\DatabaseDriverConfigOption::class,
|
||||||
Plugin\UrlShortenerConfigCustomizer::HOSTNAME,
|
Option\DatabaseNameConfigOption::class,
|
||||||
Plugin\UrlShortenerConfigCustomizer::VALIDATE_URL,
|
Option\DatabaseHostConfigOption::class,
|
||||||
Plugin\UrlShortenerConfigCustomizer::NOTIFY_VISITS_WEBHOOKS,
|
Option\DatabasePortConfigOption::class,
|
||||||
Plugin\UrlShortenerConfigCustomizer::VISITS_WEBHOOKS,
|
Option\DatabaseUserConfigOption::class,
|
||||||
|
Option\DatabasePasswordConfigOption::class,
|
||||||
|
Option\DatabaseSqlitePathConfigOption::class,
|
||||||
|
Option\DatabaseMySqlOptionsConfigOption::class,
|
||||||
|
Option\ShortDomainHostConfigOption::class,
|
||||||
|
Option\ShortDomainSchemaConfigOption::class,
|
||||||
|
Option\ValidateUrlConfigOption::class,
|
||||||
|
Option\VisitsWebhooksConfigOption::class,
|
||||||
|
Option\BaseUrlRedirectConfigOption::class,
|
||||||
|
Option\InvalidShortUrlRedirectConfigOption::class,
|
||||||
|
Option\Regular404RedirectConfigOption::class,
|
||||||
|
Option\DisableTrackParamConfigOption::class,
|
||||||
|
Option\CheckVisitsThresholdConfigOption::class,
|
||||||
|
Option\VisitsThresholdConfigOption::class,
|
||||||
|
Option\BasePathConfigOption::class,
|
||||||
|
Option\TaskWorkerNumConfigOption::class,
|
||||||
|
Option\WebWorkerNumConfigOption::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
Plugin\ApplicationConfigCustomizer::class => [
|
'installation_commands' => [
|
||||||
Plugin\ApplicationConfigCustomizer::SECRET,
|
'db_create_schema' => [
|
||||||
Plugin\ApplicationConfigCustomizer::DISABLE_TRACK_PARAM,
|
'command' => 'bin/cli db:create',
|
||||||
Plugin\ApplicationConfigCustomizer::CHECK_VISITS_THRESHOLD,
|
],
|
||||||
Plugin\ApplicationConfigCustomizer::VISITS_THRESHOLD,
|
'db_migrate' => [
|
||||||
Plugin\ApplicationConfigCustomizer::BASE_PATH,
|
'command' => 'bin/cli db:migrate',
|
||||||
Plugin\ApplicationConfigCustomizer::WEB_WORKER_NUM,
|
],
|
||||||
Plugin\ApplicationConfigCustomizer::TASK_WORKER_NUM,
|
|
||||||
],
|
|
||||||
|
|
||||||
Plugin\DatabaseConfigCustomizer::class => [
|
|
||||||
Plugin\DatabaseConfigCustomizer::DRIVER,
|
|
||||||
Plugin\DatabaseConfigCustomizer::NAME,
|
|
||||||
Plugin\DatabaseConfigCustomizer::USER,
|
|
||||||
Plugin\DatabaseConfigCustomizer::PASSWORD,
|
|
||||||
Plugin\DatabaseConfigCustomizer::HOST,
|
|
||||||
Plugin\DatabaseConfigCustomizer::PORT,
|
|
||||||
],
|
|
||||||
|
|
||||||
Plugin\RedirectsConfigCustomizer::class => [
|
|
||||||
Plugin\RedirectsConfigCustomizer::INVALID_SHORT_URL_REDIRECT_TO,
|
|
||||||
Plugin\RedirectsConfigCustomizer::REGULAR_404_REDIRECT_TO,
|
|
||||||
Plugin\RedirectsConfigCustomizer::BASE_URL_REDIRECT_TO,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
'installation_commands' => [
|
|
||||||
'db_create_schema' => [
|
|
||||||
'command' => 'bin/cli db:create',
|
|
||||||
],
|
|
||||||
'db_migrate' => [
|
|
||||||
'command' => 'bin/cli db:migrate',
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user