Service_Provider::register()

Registers the bindings,

Contents


Source

File: src/Tribe/Views/V2/Service_Provider.php

	public function register() {
		if ( ! tribe_events_tickets_views_v2_is_enabled() ) {
			// If Views v2 is not enabled, then none of its integration should be activated.
			return;
		}

		// Register this Service Provider on the container.
		$this->container->singleton( 'tickets-plus.views.v2.provider', $this );
		$this->container->singleton( static::class, $this );

		$this->register_hooks();
	}

Top ↑

Changelog

Changelog
Version Description
5.1.1 Introduced.