Automattic\WooCommerce\Internal\Api\Autogenerated
GraphQLController{}
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
Методы
- public register()
Список изменений
| Устарела с | 11.2.0 |
Код GraphQLController{} GraphQLController{} WC 11.2.2
class GraphQLController {
/**
* Register the REST route. Intentionally a no-op.
*/
public function register(): void {}
}