This commit is contained in:
Javier Casares 2026-08-17 15:55:46 +00:00
commit 3e4433cd13

View file

@ -8,6 +8,7 @@
namespace Robotstxt\TwoFA;
use Robotstxt\TwoFA\Admin\Dashboard_Page;
use Robotstxt\TwoFA\Admin\Manager_Notice;
use Robotstxt\TwoFA\Admin\Migration_Page;
use Robotstxt\TwoFA\Admin\Settings_Page;
use Robotstxt\TwoFA\Cli\Cli_Command;
@ -134,6 +135,13 @@ class Plugin {
*/
private Migration_Page $migration_page;
/**
* Manager plugin dependency notice.
*
* @var Manager_Notice
*/
private Manager_Notice $manager_notice;
/**
* REST API controller.
*
@ -174,6 +182,7 @@ class Plugin {
$this->geoip_updater = new GeoIP_Updater( $config );
$this->dashboard_page = new Dashboard_Page( $this->attempts_log, $config, $repository );
$this->migration_page = new Migration_Page();
$this->manager_notice = new Manager_Notice();
$this->rest_controller = new Rest_Controller();
}
@ -191,6 +200,7 @@ class Plugin {
$this->geoip_updater->register_hooks();
$this->dashboard_page->register_hooks();
$this->migration_page->register_hooks();
$this->manager_notice->register_hooks();
$this->rest_controller->register_hooks();
$this->login_manager->register_hooks();
$this->profile_settings->register_hooks();