Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

ObjectCacheServiceProvider{}WC 1.0

Service provider for the object cache mechanism.

No Hooks.

Usage

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

Methods

  1. public register()

ObjectCacheServiceProvider{} code WC 9.4.2

class ObjectCacheServiceProvider extends AbstractServiceProvider {

	/**
	 * The classes/interfaces that are serviced by this service provider.
	 *
	 * @var array
	 */
	protected $provides = array(
		WPCacheEngine::class,
	);

	/**
	 * Register the classes.
	 */
	public function register() {
		$this->share( WPCacheEngine::class );
	}
}