Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
ObjectCacheServiceProvider{}
Service provider for the object cache mechanism.
No Hooks.
Usage
$ObjectCacheServiceProvider = new ObjectCacheServiceProvider(); // use class methods
Methods
- public register()
ObjectCacheServiceProvider{} 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 ); } }