Tribe__Events__Community__Tickets__Service_Provider
Provides the Community Tickets service.
This class should handle implementation binding, builder functions and hooking for any first-level hook and be devoid of business logic.
Source
File: src/Tribe/Service_Provider.php
class Tribe__Events__Community__Tickets__Service_Provider extends tad_DI52_ServiceProvider {
/**
* Binds and sets up implementations.
*
* @since 4.6.2
*/
public function register() {
$this->container->singleton( 'community.tickets.fees', 'Tribe__Events__Community__Tickets__Fees' );
$this->container->singleton( 'community.tickets.shortcodes', 'Tribe__Events__Community__Tickets__Shortcodes' );
$this->hook();
}
/**
* Any hooking for any class needs happen here.
*
* In place of delegating the hooking responsibility to the single classes they are all hooked here.
*
* @since 4.6.2
*/
protected function hook() {
add_action( 'init', tribe_callback( 'community.tickets.shortcodes', 'hooks' ) );
}
}
Changelog
| Version | Description |
|---|---|
| 4.6.2 | Introduced. |
Methods
- register — Binds and sets up implementations.