Service_Provider::register()


Source

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

	public function register() {
		$this->container->singleton( 'events.views.v2.customizer.provider', $this );

		$this->register_hooks();

		tribe_singleton( 'events.views.v2.customizer.global-elements', Global_Elements::class );
		// For backwards-compatibility.
		tribe_singleton(
			'tec.customizer.global-elements',
			static function() {
				return tribe( 'events.views.v2.customizer.global-elements' );
			}
		);
		tribe_singleton( 'events.views.v2.customizer.month-view', Month_View::class );
		tribe_singleton( 'events.views.v2.customizer.events-bar', Events_Bar::class );
		tribe_singleton( 'events.views.v2.customizer.single-event', Single_Event::class );

		// Notice for extension incompatibility
		tribe_singleton( Notice::class, Notice::class, [ 'hook' ] );

		tribe( 'events.views.v2.customizer.global-elements');
		tribe( 'events.views.v2.customizer.month-view');
		tribe( 'events.views.v2.customizer.events-bar');
		tribe( 'events.views.v2.customizer.single-event' );
		tribe( Notice::class );

	}