2019-02-10 14:57:29 -06:00
|
|
|
<?php
|
2019-10-05 10:26:10 -05:00
|
|
|
|
2019-02-10 14:57:29 -06:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Shlinkio\Shlink\Installer\Config\Plugin;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'installer_plugins_expected_config' => [
|
|
|
|
Plugin\UrlShortenerConfigCustomizer::class => [
|
|
|
|
Plugin\UrlShortenerConfigCustomizer::SCHEMA,
|
|
|
|
Plugin\UrlShortenerConfigCustomizer::HOSTNAME,
|
|
|
|
Plugin\UrlShortenerConfigCustomizer::VALIDATE_URL,
|
|
|
|
],
|
|
|
|
|
|
|
|
Plugin\ApplicationConfigCustomizer::class => [
|
|
|
|
Plugin\ApplicationConfigCustomizer::SECRET,
|
|
|
|
Plugin\ApplicationConfigCustomizer::DISABLE_TRACK_PARAM,
|
|
|
|
Plugin\ApplicationConfigCustomizer::CHECK_VISITS_THRESHOLD,
|
|
|
|
Plugin\ApplicationConfigCustomizer::VISITS_THRESHOLD,
|
2019-09-28 02:30:20 -05:00
|
|
|
Plugin\ApplicationConfigCustomizer::BASE_PATH,
|
2019-11-10 06:07:57 -06:00
|
|
|
Plugin\ApplicationConfigCustomizer::WEB_WORKER_NUM,
|
|
|
|
Plugin\ApplicationConfigCustomizer::TASK_WORKER_NUM,
|
2019-02-10 14:57:29 -06:00
|
|
|
],
|
|
|
|
|
|
|
|
Plugin\DatabaseConfigCustomizer::class => [
|
|
|
|
Plugin\DatabaseConfigCustomizer::DRIVER,
|
|
|
|
Plugin\DatabaseConfigCustomizer::NAME,
|
|
|
|
Plugin\DatabaseConfigCustomizer::USER,
|
|
|
|
Plugin\DatabaseConfigCustomizer::PASSWORD,
|
|
|
|
Plugin\DatabaseConfigCustomizer::HOST,
|
|
|
|
Plugin\DatabaseConfigCustomizer::PORT,
|
|
|
|
],
|
2019-11-02 15:15:26 -05:00
|
|
|
|
|
|
|
Plugin\RedirectsConfigCustomizer::class => [
|
|
|
|
Plugin\RedirectsConfigCustomizer::INVALID_SHORT_URL_REDIRECT_TO,
|
|
|
|
Plugin\RedirectsConfigCustomizer::REGULAR_404_REDIRECT_TO,
|
|
|
|
Plugin\RedirectsConfigCustomizer::BASE_URL_REDIRECT_TO,
|
|
|
|
],
|
2019-02-10 14:57:29 -06:00
|
|
|
],
|
|
|
|
|
2019-08-05 03:08:59 -05:00
|
|
|
'installation_commands' => [
|
|
|
|
'db_create_schema' => [
|
|
|
|
'command' => 'bin/cli db:create',
|
|
|
|
],
|
2019-08-06 13:48:48 -05:00
|
|
|
'db_migrate' => [
|
|
|
|
'command' => 'bin/cli db:migrate',
|
|
|
|
],
|
2019-08-05 03:08:59 -05:00
|
|
|
],
|
|
|
|
|
2019-02-10 14:57:29 -06:00
|
|
|
];
|