Automattic\WooCommerce\Internal\Api\Autogenerated

GraphQLController{} │ WC 1.0

Deprecated since 11.2.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

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.

No Hooks.

Usage

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

Methods

  1. public register()

Changelog

Deprecated since 11.2.0

GraphQLController{} code WC 11.3.0

class GraphQLController {

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