| @@ -11,12 +11,12 @@ | ||
| 11 | 11 | defined( 'ABSPATH' ) || exit; |
| 12 | 12 | |
| 13 | 13 | class JobInitializer { |
| 14 | 14 | |
| 15 | - public function __construct( Proxy $proxy ) { | |
| 15 | + public function __construct( Proxy $proxy, LlmsTxtParser $llms_txt_parser ) { | |
| 16 | 16 | $jobs = array(); |
| 17 | 17 | $jobs[] = new NotifyMcpJob( new ActionScheduler(), new EventHandlerFactory( $proxy ) ); |
| 18 | - $jobs[] = new LlmsTxtInjectContentJob( new ActionScheduler(), new LlmsTxtParser(), new LlmsTxtFileHelper(), new PluginSettings() ); | |
| 18 | + $jobs[] = new LlmsTxtInjectContentJob( new ActionScheduler(), $llms_txt_parser, new LlmsTxtFileHelper(), new PluginSettings() ); | |
| 19 | 19 | |
| 20 | 20 | foreach ( $jobs as $job ) { |
| 21 | 21 | $job->init(); |
| 22 | 22 | } |