This commit is contained in:
Javier Casares 2026-06-05 16:30:07 +00:00
commit a115f08319

View file

@ -9,8 +9,11 @@ namespace Robotstxt\TwoFA;
use Robotstxt\TwoFA\Admin\Settings_Page;
use Robotstxt\TwoFA\Login\Login_Form_Manager;
use Robotstxt\TwoFA\User\Frontend_Profile;
use Robotstxt\TwoFA\User\Grace_Period;
use Robotstxt\TwoFA\User\Profile_Settings;
use Robotstxt\TwoFA\User\Recovery_Codes;
use Robotstxt\TwoFA\User\Trusted_Devices;
if ( ! defined( 'ABSPATH' ) ) {
exit;
@ -55,6 +58,27 @@ class Plugin {
*/
private Settings_Page $settings_page;
/**
* Frontend profile shortcode handler.
*
* @var Frontend_Profile
*/
private Frontend_Profile $frontend_profile;
/**
* Trusted devices manager.
*
* @var Trusted_Devices
*/
private Trusted_Devices $trusted_devices;
/**
* Grace period manager.
*
* @var Grace_Period
*/
private Grace_Period $grace_period;
/**
* Get singleton instance.
*
@ -76,6 +100,9 @@ class Plugin {
$this->profile_settings = new Profile_Settings();
$this->recovery_codes = new Recovery_Codes();
$this->settings_page = new Settings_Page();
$this->frontend_profile = new Frontend_Profile();
$this->trusted_devices = new Trusted_Devices();
$this->grace_period = new Grace_Period();
}
/**
@ -89,6 +116,9 @@ class Plugin {
$this->profile_settings->register_hooks();
$this->recovery_codes->register_hooks();
$this->settings_page->register_hooks();
$this->frontend_profile->register_hooks();
$this->trusted_devices->register_hooks();
$this->grace_period->register_hooks();
}
/**