Provider::register()

Binds and sets up implementations.

Contents


Source

File: src/Tickets/Provider.php

	public function register() {
		require_once Tickets_Plugin::instance()->plugin_path . 'src/functions/commerce/provider.php';

		$this->register_hooks();
		$this->register_assets();

		// Register the SP on the container.
		$this->container->singleton( static::class, $this );
		$this->container->singleton( 'tickets.provider', $this );

		// Loads all of tickets commerce.
		$this->container->register( Commerce\Provider::class );
	}

Top ↑

Changelog

Changelog
Version Description
5.6.4 Use register_on_action method to register custom table providers.
5.5.0
5.1.6 Introduced.