Provider::register()

Register the provider singletons.

Contents


Source

File: src/Events/Editor/Full_Site/Provider.php

	public function register() {
		if ( ! tec_is_full_site_editor() ) {
			return;
		}

		$this->container->singleton( Templates::class );

		// Register singletons.
		$this->register_singletons();

		// Register the Service Provider for Hooks.
		$this->container->register( Hooks::class );

		// Register the Service Provider for Assets.
		$this->register_assets();

		// Register the service provider itself on the container.
		$this->container->singleton( static::class, $this );
	}

Top ↑

Changelog

Changelog
Version Description
5.14.2 Introduced.