| @@ -6,8 +6,9 @@ | ||
| 6 | 6 | use Hostinger\Admin\PluginSettings; |
| 7 | 7 | use Hostinger\Admin\Jobs\JobInitializer; |
| 8 | 8 | use Hostinger\Admin\Proxy; |
| 9 | 9 | use Hostinger\LlmsTxtGenerator\LlmsTxtFileHelper; |
| 10 | +use Hostinger\LlmsTxtGenerator\LlmsTxtHeadLink; | |
| 10 | 11 | use Hostinger\LlmsTxtGenerator\LlmsTxtParser; |
| 11 | 12 | use Hostinger\Rest\Routes; |
| 12 | 13 | use Hostinger\Rest\SettingsRoutes; |
| 13 | 14 | use Hostinger\Admin\Assets as AdminAssets; |
| @@ -83,11 +84,15 @@ | ||
| 83 | 84 | |
| 84 | 85 | new JobInitializer( new Proxy( $client, $this->utils ) ); |
| 85 | 86 | new Hooks(); |
| 86 | 87 | |
| 87 | - $plugin_settings = new PluginSettings(); | |
| 88 | + $plugin_settings = new PluginSettings(); | |
| 89 | + $llms_txt_file_helper = new LlmsTxtFileHelper(); | |
| 88 | 90 | |
| 89 | - new LlmsTxtGenerator( $plugin_settings, new LlmsTxtFileHelper(), new LlmsTxtParser() ); | |
| 91 | + new LlmsTxtGenerator( $plugin_settings, $llms_txt_file_helper, new LlmsTxtParser() ); | |
| 92 | + | |
| 93 | + $llms_txt_head_link = new LlmsTxtHeadLink( $plugin_settings, $llms_txt_file_helper ); | |
| 94 | + $this->loader->add_action( 'wp_head', $llms_txt_head_link, 'render' ); | |
| 90 | 95 | |
| 91 | 96 | $settings_routes = new SettingsRoutes( $plugin_settings ); |
| 92 | 97 | $routes = new Routes( $settings_routes ); |
| 93 | 98 | $routes->init(); |