Revert "Rename config keys for IFTTT and Integromat"
This reverts commit 9a46b63299
.
This commit is contained in:
parent
9a46b63299
commit
a80de5c738
|
@ -2,7 +2,7 @@ opdavies_blog.settings:
|
||||||
type: config_object
|
type: config_object
|
||||||
label: 'Blog module configuration'
|
label: 'Blog module configuration'
|
||||||
mapping:
|
mapping:
|
||||||
integromat.webhook_url:
|
integromat_webhook_url:
|
||||||
type: string
|
type: string
|
||||||
ifttt.webhook_url:
|
post_tweet_webhook_url:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -28,7 +28,7 @@ final class IftttPostPusher extends WebhookPostPusher {
|
||||||
public function push(Post $post): void {
|
public function push(Post $post): void {
|
||||||
$url = $this->configFactory
|
$url = $this->configFactory
|
||||||
->get('opdavies_blog.settings')
|
->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.');
|
Assert::notNull($url, 'Cannot push the post if there is no URL.');
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ final class IntegromatPostPusher extends WebhookPostPusher {
|
||||||
public function push(Post $post): void {
|
public function push(Post $post): void {
|
||||||
$url = $this->configFactory
|
$url = $this->configFactory
|
||||||
->get('opdavies_blog.settings')
|
->get('opdavies_blog.settings')
|
||||||
->get('integromat.webhook_url');
|
->get('integromat_webhook_url');
|
||||||
|
|
||||||
Assert::notNull($url, 'Cannot push the post if there is no URL.');
|
Assert::notNull($url, 'Cannot push the post if there is no URL.');
|
||||||
|
|
||||||
|
|
|
@ -760,8 +760,8 @@ $settings['entity_update_backup'] = TRUE;
|
||||||
|
|
||||||
$settings["config_sync_directory"] = '../config';
|
$settings["config_sync_directory"] = '../config';
|
||||||
|
|
||||||
$config['opdavies_blog.settings']['integromat.webhook_url'] = getenv('INTEGROMAT_WEBHOOK_URL');
|
$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']['post_tweet_webhook_url'] = getenv('IFTTT_WEBHOOK_URL');
|
||||||
|
|
||||||
if (file_exists($app_root . '/' . $site_path . '/settings.platformsh.php')) {
|
if (file_exists($app_root . '/' . $site_path . '/settings.platformsh.php')) {
|
||||||
include $app_root . '/' . $site_path . '/settings.platformsh.php';
|
include $app_root . '/' . $site_path . '/settings.platformsh.php';
|
||||||
|
|
Loading…
Reference in a new issue