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 2cb7d3f..58d2460 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 - ifttt.webhook_url: + post_tweet_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 67fc46d..db9b36b 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('ifttt.webhook_url'); + ->get('post_tweet_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 674391f..2b2367b 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 723f6bd..3bbbc8a 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']['ifttt.webhook_url'] = getenv('IFTTT_WEBHOOK_URL'); +$config['opdavies_blog.settings']['integromat_webhook_url'] = getenv('INTEGROMAT_WEBHOOK_URL'); +$config['opdavies_blog.settings']['post_tweet_webhook_url'] = getenv('IFTTT_WEBHOOK_URL'); if (file_exists($app_root . '/' . $site_path . '/settings.platformsh.php')) { include $app_root . '/' . $site_path . '/settings.platformsh.php';