Files
piratepoet/mailpoet/lib/Automation/Automation.php
Jan Jakes 99a8ee3a46 Add basic API route handling wrapper for WP REST API
Each endpoint will be a class that can implement get/post/put/delete methods.
The routes are registered to WP REST API automatically based on the existence
of implemented methods. The endpoint classes are handled standard services and
therefore can leverage full powers of the DI container.

[MAILPOET-4135]
2022-02-21 09:56:26 +01:00

21 lines
307 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Automation;
use MailPoet\Automation\API\API;
class Automation {
/** @var API */
private $api;
public function __construct(
API $api
) {
$this->api = $api;
}
public function initialize(): void {
$this->api->initialize();
}
}