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 7.1.0

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 );
	}
}