HEX
Server: Apache
System: Linux p3plzcpnl507418.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: retoti4c1e1s (10075650)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/link-factory/includes/class-plugin.php
<?php
/**
 * Plugin bootstrap class.
 *
 * @package LinkFactory
 */

namespace LinkFactory;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Plugin {

	public static function activate() {
		Repository::install_schema();
	}

	public static function boot() {
		$repository = new Repository();
		$health     = new Health();
		$sentences  = new Sentences( $repository );
		$articles   = new Articles();
		$users      = new Users();
		$footer     = new Footer( $repository );

		add_action( 'rest_api_init', array( $health, 'register_routes' ) );
		add_action( 'rest_api_init', array( $sentences, 'register_routes' ) );
		add_action( 'rest_api_init', array( $articles, 'register_routes' ) );
		add_action( 'rest_api_init', array( $users, 'register_routes' ) );
		add_action( 'wp_footer', array( $footer, 'render' ) );
	}
}