is_ate_active() ) { $sitepress = $this->get_sitepress(); $current_screen = $this->get_current_screen(); $ate_api = $ams_ate_factories->get_ate_api(); $records = wpml_tm_get_ate_job_records(); $ate_jobs = new WPML_TM_ATE_Jobs( $records ); $translator_activation_records = new WPML_TM_AMS_Translator_Activation_Records( new WPML_WP_User_Factory() ); return new WPML_TM_ATE_Jobs_Actions( $ate_api, $ate_jobs, $sitepress, $current_screen, $translator_activation_records, make( \WPML_TM_ATE_Jobs_Sync_Script_Loader::class ) ); } return null; } /** * The global instance of \Sitepress. * * @return SitePress */ private function get_sitepress() { global $sitepress; return $sitepress; } /** * It gets the instance of \WPML_Current_Screen. * * @return \WPML_Current_Screen */ private function get_current_screen() { if ( ! $this->current_screen ) { $this->current_screen = new WPML_Current_Screen(); } return $this->current_screen; } }