Tribe__Events__REST__V1__Main::bind_implementations()
Binds the implementations needed to support the REST API.
Source
File: src/Tribe/REST/V1/Main.php
public function bind_implementations() {
tribe_singleton( 'tec.rest-v1.messages', 'Tribe__Events__REST__V1__Messages' );
tribe_singleton( 'tec.rest-v1.ea-messages', 'Tribe__Events__REST__V1__EA_Messages' );
tribe_singleton( 'tec.rest-v1.headers-base', 'Tribe__Events__REST__V1__Headers__Base' );
tribe_singleton( 'tec.rest-v1.settings', 'Tribe__Events__REST__V1__Settings' );
tribe_singleton( 'tec.rest-v1.system', 'Tribe__Events__REST__V1__System' );
tribe_singleton( 'tec.rest-v1.validator', 'Tribe__Events__REST__V1__Validator__Base' );
tribe_singleton( 'tec.rest-v1.repository', 'Tribe__Events__REST__V1__Post_Repository' );
tribe_singleton( 'tec.rest-v1.endpoints.single-venue', array( $this, 'build_single_venue_endpoint' ) );
tribe_singleton( 'tec.rest-v1.endpoints.single-organizer', array( $this, 'build_single_organizer_endpoint' ) );
tribe_singleton( 'tec.json-ld.event', array( 'Tribe__Events__JSON_LD__Event', 'instance' ) );
tribe_singleton( 'tec.json-ld.venue', array( 'Tribe__Events__JSON_LD__Venue', 'instance' ) );
tribe_singleton( 'tec.json-ld.organizer', array( 'Tribe__Events__JSON_LD__Organizer', 'instance' ) );
include_once Tribe__Events__Main::instance()->plugin_path . 'src/functions/advanced-functions/rest-v1.php';
}