Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

LayoutTemplatesServiceProvider{}WC 1.0

Service provider for layout templates.

No Hooks.

Usage

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

Methods

  1. public register()

LayoutTemplatesServiceProvider{} code WC 9.3.3

class LayoutTemplatesServiceProvider extends AbstractServiceProvider {

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

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