| 1 |
<?php |
| 2 |
|
| 3 |
if (! defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
require_once BLOCKSPARE_PLUGIN_DIR . 'inc/ai/class-blockspare-ai-settings.php'; |
| 8 |
require_once BLOCKSPARE_PLUGIN_DIR . 'inc/ai/class-blockspare-ai-rest-api.php'; |
| 9 |
|
| 10 |
/** |
| 11 |
* Bootstraps the AI content generation feature: wires the settings |
| 12 |
* screen and the REST API endpoint together. |
| 13 |
*/ |
| 14 |
class Blockspare_AI_Content_Generator |
| 15 |
{ |
| 16 |
|
| 17 |
/** |
| 18 |
* @var Blockspare_AI_Settings |
| 19 |
*/ |
| 20 |
private $settings; |
| 21 |
|
| 22 |
/** |
| 23 |
* @var Blockspare_AI_REST_API |
| 24 |
*/ |
| 25 |
private $rest_api; |
| 26 |
|
| 27 |
|
| 28 |
public function __construct() |
| 29 |
{ |
| 30 |
$this->settings = new Blockspare_AI_Settings(); |
| 31 |
$this->rest_api = new Blockspare_AI_REST_API($this->settings); |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
new Blockspare_AI_Content_Generator(); |
| 36 |
|