Proxy
This class registers the proxy container that adds a Wordpress proxy layer on top of the BigCommerce API.
Sets up necessary services such as REST controllers, caching, and AMP cart controllers.
- Full name:
\BigCommerce\Container\Proxy
- Parent class:
Provider
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
ACCESS | public | string | ’proxy.access’ |
REST_CONTROLLER | public | string | ’proxy.rest_controller’ |
CACHE | public | string | ’proxy.cache’ |
PROXY_BASE | public | string | ’proxy.base’ |
AMP_CART_CONTROLLER | public | string | ’proxy.amp_cart_controller’ |
CACHE_PRIORITY | public | int | 10 |
Methods
register
Registers the container and initializes proxy-related services such as REST controller, cache, and AMP cart controller.
public register(\Pimple\Container $container): void
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | A container instance. |
Automatically generated on 2025-01-21