diff --git a/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml b/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml index 58d2460..2cb7d3f 100644 --- a/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml +++ b/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml @@ -2,7 +2,7 @@ opdavies_blog.settings: type: config_object label: 'Blog module configuration' mapping: - integromat_webhook_url: + integromat.webhook_url: type: string - post_tweet_webhook_url: + ifttt.webhook_url: type: string diff --git a/web/modules/custom/blog/src/Service/PostPusher/IftttPostPusher.php b/web/modules/custom/blog/src/Service/PostPusher/IftttPostPusher.php index db9b36b..67fc46d 100644 --- a/web/modules/custom/blog/src/Service/PostPusher/IftttPostPusher.php +++ b/web/modules/custom/blog/src/Service/PostPusher/IftttPostPusher.php @@ -28,7 +28,7 @@ final class IftttPostPusher extends WebhookPostPusher { public function push(Post $post): void { $url = $this->configFactory ->get('opdavies_blog.settings') - ->get('post_tweet_webhook_url'); + ->get('ifttt.webhook_url'); Assert::notNull($url, 'Cannot push the post if there is no URL.'); diff --git a/web/modules/custom/blog/src/Service/PostPusher/IntegromatPostPusher.php b/web/modules/custom/blog/src/Service/PostPusher/IntegromatPostPusher.php index 2b2367b..674391f 100644 --- a/web/modules/custom/blog/src/Service/PostPusher/IntegromatPostPusher.php +++ b/web/modules/custom/blog/src/Service/PostPusher/IntegromatPostPusher.php @@ -28,7 +28,7 @@ final class IntegromatPostPusher extends WebhookPostPusher { public function push(Post $post): void { $url = $this->configFactory ->get('opdavies_blog.settings') - ->get('integromat_webhook_url'); + ->get('integromat.webhook_url'); Assert::notNull($url, 'Cannot push the post if there is no URL.'); diff --git a/web/sites/default/settings.php b/web/sites/default/settings.php index 3bbbc8a..723f6bd 100644 --- a/web/sites/default/settings.php +++ b/web/sites/default/settings.php @@ -760,8 +760,8 @@ $settings['entity_update_backup'] = TRUE; $settings["config_sync_directory"] = '../config'; -$config['opdavies_blog.settings']['integromat_webhook_url'] = getenv('INTEGROMAT_WEBHOOK_URL'); -$config['opdavies_blog.settings']['post_tweet_webhook_url'] = getenv('IFTTT_WEBHOOK_URL'); +$config['opdavies_blog.settings']['integromat.webhook_url'] = getenv('INTEGROMAT_WEBHOOK_URL'); +$config['opdavies_blog.settings']['ifttt.webhook_url'] = getenv('IFTTT_WEBHOOK_URL'); if (file_exists($app_root . '/' . $site_path . '/settings.platformsh.php')) { include $app_root . '/' . $site_path . '/settings.platformsh.php';