| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/plugins/link-factory/includes/ |
Upload File : |
<?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' ) );
}
}