mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added visits_webhooks option to SimplifiedConfigParser
This commit is contained in:
parent
3c9da80962
commit
664569a52b
@ -32,6 +32,7 @@ class SimplifiedConfigParser
|
|||||||
'base_path' => ['router', 'base_path'],
|
'base_path' => ['router', 'base_path'],
|
||||||
'web_worker_num' => ['zend-expressive-swoole', 'swoole-http-server', 'options', 'worker_num'],
|
'web_worker_num' => ['zend-expressive-swoole', 'swoole-http-server', 'options', 'worker_num'],
|
||||||
'task_worker_num' => ['zend-expressive-swoole', 'swoole-http-server', 'options', 'task_worker_num'],
|
'task_worker_num' => ['zend-expressive-swoole', 'swoole-http-server', 'options', 'task_worker_num'],
|
||||||
|
'visits_webhooks' => ['url_shortener', 'visits_webhooks'],
|
||||||
];
|
];
|
||||||
private const SIMPLIFIED_CONFIG_SIDE_EFFECTS = [
|
private const SIMPLIFIED_CONFIG_SIDE_EFFECTS = [
|
||||||
'delete_short_url_threshold' => [
|
'delete_short_url_threshold' => [
|
||||||
|
@ -53,6 +53,10 @@ class SimplifiedConfigParserTest extends TestCase
|
|||||||
],
|
],
|
||||||
'base_path' => '/foo/bar',
|
'base_path' => '/foo/bar',
|
||||||
'task_worker_num' => 50,
|
'task_worker_num' => 50,
|
||||||
|
'visits_webhooks' => [
|
||||||
|
'http://my-api.com/api/v2.3/notify',
|
||||||
|
'https://third-party.io/foo',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
$expected = [
|
$expected = [
|
||||||
'app_options' => [
|
'app_options' => [
|
||||||
@ -76,6 +80,10 @@ class SimplifiedConfigParserTest extends TestCase
|
|||||||
'hostname' => 'doma.in',
|
'hostname' => 'doma.in',
|
||||||
],
|
],
|
||||||
'validate_url' => false,
|
'validate_url' => false,
|
||||||
|
'visits_webhooks' => [
|
||||||
|
'http://my-api.com/api/v2.3/notify',
|
||||||
|
'https://third-party.io/foo',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'delete_short_urls' => [
|
'delete_short_urls' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user