hooks(); } /** * Register hooks. * * @return void */ public function hooks(): void { add_action( 'rest_api_init', array( $this, 'register_rest_routes' ) ); } /** * Register the app-proxy REST controller. * * @return void */ public function register_rest_routes(): void { ( new ProxyController() )->register_routes(); } /** * Register the service. * * @return void */ public static function register(): void { new self(); } }