class-link-watcher-loader.php 533 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Links
  6. */
  7. /**
  8. * Represents the loader for link watcher.
  9. */
  10. class WPSEO_Link_Watcher_Loader {
  11. /**
  12. * Loads the link watcher.
  13. *
  14. * @return void
  15. */
  16. public function load() {
  17. $storage = new WPSEO_Link_Storage();
  18. $count_storage = new WPSEO_Meta_Storage();
  19. $content_processor = new WPSEO_Link_Content_Processor( $storage, $count_storage );
  20. $link_watcher = new WPSEO_Link_Watcher( $content_processor );
  21. $link_watcher->register_hooks();
  22. }
  23. }