oont-contents/plugins/mailpoet-premium/lib/Automation/Integrations/WordPress/WordPressIntegration.php
2025-02-08 15:10:23 +01:00

26 lines
679 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Premium\Automation\Integrations\WordPress;
if (!defined('ABSPATH')) exit;
use MailPoet\Automation\Engine\Integration;
use MailPoet\Automation\Engine\Registry;
use MailPoet\Premium\Automation\Integrations\WordPress\Triggers\MadeACommentTrigger;
class WordPressIntegration implements Integration {
/** @var MadeACommentTrigger */
private $madeACommentTrigger;
public function __construct(
MadeACommentTrigger $madeACommentTrigger
) {
$this->madeACommentTrigger = $madeACommentTrigger;
}
public function register(Registry $registry): void {
$registry->addTrigger($this->madeACommentTrigger);
}
}