HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/gift.naniguide.com/wp-content/plugins/send-app/core/connect/manager.php
<?php
namespace Send_App\Core\Connect;

use Send_App\Core\Base\Route_Base;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Manager {

	/** @var Route_Base[] */
	private $routes = [];

	public function init() {
		$this->register_components();
		$this->register_routes();
	}

	public function get_routes(): array {
		return $this->routes;
	}

	private function register_components(): void {
		( new Components\Handler() );
	}

	private function register_routes(): void {
		$this->routes[] = new Rest\Authorize();
		$this->routes[] = new Rest\Reconnect();
		$this->routes[] = new Rest\Refresh_Token();
		$this->routes[] = new Rest\Switch_Domain();
	}
}