PluginProbe
Hostinger Tools / 3.0.76
Hostinger Tools v3.0.76
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 All 108 releases
hostinger / includes / Admin / Jobs / JobInitializer.php

JobInitializer.php in Hostinger Tools 3.0.76, at includes/Admin/Jobs/JobInitializer.php

25 lines 688 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hostinger\Admin\Jobs;
4
5 use Hostinger\Admin\PluginSettings;
6 use Hostinger\Admin\Proxy;
7 use Hostinger\LlmsTxtGenerator\LlmsTxtFileHelper;
8 use Hostinger\LlmsTxtGenerator\LlmsTxtParser;
9 use Hostinger\Mcp\EventHandlerFactory;
10
11 defined( 'ABSPATH' ) || exit;
12
13 class JobInitializer {
14
15 public function __construct( Proxy $proxy ) {
16 $jobs = array();
17 $jobs[] = new NotifyMcpJob( new ActionScheduler(), new EventHandlerFactory( $proxy ) );
18 $jobs[] = new LlmsTxtInjectContentJob( new ActionScheduler(), new LlmsTxtParser(), new LlmsTxtFileHelper(), new PluginSettings() );
19
20 foreach ( $jobs as $job ) {
21 $job->init();
22 }
23 }
24 }
25