# booking/11.7/includes/page-appointment-services/repository/appointment_services__repository.php

Booking Calendar, version 11.7. 28 lines.

- Page: https://pluginprobe.com/plugins/booking/11.7/code/includes/page-appointment-services/repository/appointment_services__repository.php
- Raw: https://pluginprobe.com/plugins/booking/11.7/raw/includes/page-appointment-services/repository/appointment_services__repository.php
- Modified: 2026-08-04T08:52:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/booking/11.7/code/includes/page-appointment-services/repository/appointment_services__repository.php#L10-L20`.

```php
<?php
/** Repository bootstrap. @package Booking Calendar */
if ( ! defined( 'ABSPATH' ) ) { exit; }
require_once __DIR__ . '/class-wpbc-appointment-services-repository.php';

/**
 * Return the shared native Appointment Services repository.
 *
 * @return WPBC_Appointment_Services_Repository Native repository instance.
 */
function wpbc_appointment_services_repository() {
	static $repository = null;
	if ( null === $repository ) { $repository = new WPBC_Appointment_Services_Repository(); }
	return $repository;
}

/**
 * Supply the native repository when an extension has not provided one.
 *
 * @param mixed $provider Provider selected by an earlier filter callback.
 *
 * @return object Existing provider or the native repository.
 */
function wpbc_appointment_services_use_native_repository( $provider ) {
	return $provider ? $provider : wpbc_appointment_services_repository();
}
add_filter( 'wpbc_appointment_services_data_provider', 'wpbc_appointment_services_use_native_repository', 10 );

```
