Service_Provider::register()

Binds and sets up implementations.

Contents


Source

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

	public function register() {

		require_once tribe( 'tickets.main' )->plugin_path . 'src/functions/views/provider.php';

		if ( ! tribe_events_tickets_views_v2_is_enabled() ) {
			return;
		}

		$this->register_hooks();

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

Top ↑

Changelog

Changelog
Version Description
4.10.9 Introduced.