Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

ComingSoonServiceProvider{}WC 1.0

Service provider for the Coming Soon mode.

No Hooks.

Usage

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

Methods

  1. public register()

ComingSoonServiceProvider{} code WC 9.1.2

class ComingSoonServiceProvider extends AbstractServiceProvider {

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

	/**
	 * Register the classes.
	 */
	public function register() {
		$this->add( ComingSoonCacheInvalidator::class );
		$this->add( ComingSoonHelper::class );
		$this->add( ComingSoonRequestHandler::class )->addArgument( ComingSoonHelper::class );
	}
}