Automattic\WooCommerce\Api\Infrastructure
GraphQLControllerBase::init
DI: injected by WooCommerce container.
Method of the class: GraphQLControllerBase{}
No Hooks.
Returns
null. Nothing (null).
Usage
$GraphQLControllerBase = new GraphQLControllerBase(); $GraphQLControllerBase->init( $query_cache ): void;
- $query_cache(QueryCache) (required)
- The query cache instance.
GraphQLControllerBase::init() GraphQLControllerBase::init code WC 10.9.1
final public function init( QueryCache $query_cache ): void {
$this->query_cache = $query_cache;
// Resolved through a virtual hook so autogenerated subclasses can
// supply a per-plugin resolver without changing init()'s signature.
// Late binding picks up the override; init() can stay final.
$this->status_resolver = $this->get_status_resolver();
}