ClassesBigCommerceContainerGraphQL

GraphQL

This class provides functionality for registering GraphQL-related services, such as various query objects and a GraphQL requestor processor, in the BigCommerce container. The register method configures these services to be accessed globally through the container.

  • Full name: \BigCommerce\Container\GraphQL
  • Parent class: Provider

Constants

ConstantVisibilityTypeValue
GRAPHQL_REQUESTORpublicstring’bigcommerce.graphql_requestor’
QUERYpublicstring’bigcommerce.graphql_query’
PRODUCT_QUERYpublicstring’bigcommerce.graphql_query_products’
REVIEWS_QUERYpublicstring’bigcommerce.graphql_query_reviews’
TERMS_QUERYpublicstring’bigcommerce.graphql_query_terms’
CUSTOMER_QUERYpublicstring’bigcommerce.graphql_query_customer’

Methods

register

Registers the GraphQL-related services in the container.

public register(\Pimple\Container $container): mixed

This method registers the GraphQL queries (products, reviews, terms, customer) and the GraphQL_Processor service that will be used to execute GraphQL requests. These services are registered with specific keys that can be accessed via the container.

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerThe Pimple container instance used for managing dependencies.


Automatically generated on 2025-01-21