<?php

class WPML_REST_Request_Analyze_Factory {

	public static function create() {
		global $wpml_url_converter, $wpml_language_resolution;

		return new WPML_REST_Request_Analyze(
			$wpml_url_converter,
			$wpml_language_resolution->get_active_language_codes(),
			new WP_Rewrite()
		);
	}
}
