Automattic\WooCommerce\Internal\Api\Autogenerated

GraphQLController{} │ WC 1.0

Устарела с версии 11.2.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Compatibility stub for the generated GraphQL controller of the dual API proof of concept.

The dual (code + GraphQL) API engine and its proof-of-concept core API were removed from WooCommerce core in 11.2 (the engine now lives in the WooCommerce Dual API plugin). This empty stub stays so that, during an in-place update from 10.9-11.1, the still-resident Main::handle_rest_api_init_for_core() of the old version can instantiate the class it names instead of fataling on the deleted file when the REST server boots later in the same request (see the wc-admin settings preload on admin_print_footer_scripts). It registers nothing.

The old code only reaches this class when the hidden dual_code_graphql_api feature flag is on, which experimenters enabled through wp option update.

Хуков нет.

Использование

$GraphQLController = new GraphQLController();
// use class methods

Методы

  1. public register()

Список изменений

Устарела с 11.2.0

Код GraphQLController{} WC 11.2.2

class GraphQLController {

	/**
	 * Register the REST route. Intentionally a no-op.
	 */
	public function register(): void {}
}