26 lines
679 B
PHP
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);
|
|
}
|
|
}
|