Files
piratepoet/mailpoet/lib/Automation/Engine/Engine.php
Jan Jakes da2621230d Move automation engine code under "Engine" namespace
This is to separate the engine itself from "integrations" that will be
built on top of the engine.

[MAILPOET-4136]
2022-03-14 09:36:21 +01:00

24 lines
505 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Automation\Engine;
use MailPoet\Automation\Engine\API\API;
class Engine {
/** @var API */
private $api;
public function __construct(
API $api
) {
$this->api = $api;
}
public function initialize(): void {
// register Action Scheduler (when behind feature flag, do it only on initialization)
require_once __DIR__ . '/../../../vendor/woocommerce/action-scheduler/action-scheduler.php';
$this->api->initialize();
}
}