Service_Provider::register()
Binds and sets up implementations.
Source
File: src/Tribe/Views/V2/Service_Provider.php
public function register() {
if ( ! tribe_events_views_v2_is_enabled() ) {
return;
}
$this->container->singleton( Filters::class, Filters::class );
$this->register_hooks();
$this->register_assets();
// Register the SP on the container
$this->container->singleton( 'filterbar.views.v2.provider', $this );
$this->container->singleton( static::class, $this );
}
Changelog
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |