Provider::register()
Register the provider singletons.
Source
File: src/Tickets/Emails/Provider.php
public function register() {
// If not enabled, do not load Tickets Emails system.
// @todo @codingmusician @rafsuntaskin @juanfra: Remove this for 5.7.0 (When we release Tickets Emails)
if ( ! tec_tickets_emails_is_enabled() ) {
return;
}
$this->register_assets();
$this->register_hooks();
// Register singletons.
$this->container->singleton( static::class, $this );
$this->container->singleton( 'tickets.emails.provider', $this );
$this->container->singleton( Admin\Emails_Tab::class );
$this->container->singleton( Admin\Preview_Modal::class );
$this->container->register( Email_Handler::class );
$this->container->singleton( Web_View::class );
}
Changelog
| Version | Description |
|---|---|
| 5.5.6 | Introduced. |