Tribe__Events__Pro__Service_Providers__ORM::register()
Binds and sets up implementations and registers the required filters.
Source
File: src/Tribe/Service_Providers/ORM.php
public function register() {
// Not bound as a singleton to leverage the repository instance properties and to allow decoration and injection.
$this->container->bind( 'events-pro.event-repository', 'Tribe__Events__Pro__Repositories__Event' );
$this->container->bind( 'events-pro.venue-repository', 'Tribe__Events__Pro__Repositories__Venue' );
add_filter( 'tribe_events_event_repository_map', array( $this, 'filter_event_repository_map' ) );
add_filter( 'tribe_events_venue_repository_map', array( $this, 'filter_venue_repository_map' ) );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |