HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/epubdjye/www/wp-content/plugins/the-events-calendar/src/Events/REST/TEC/V1/Controller.php
<?php
/**
 * Controller for the Events V1 REST API.
 *
 * @since 6.15.0
 *
 * @package TEC\Events\REST\TEC\V1
 */

declare( strict_types=1 );

namespace TEC\Events\REST\TEC\V1;

use TEC\Common\Contracts\Provider\Controller as Controller_Contract;

/**
 * Controller for the Events V1 REST API.
 *
 * @since 6.15.0
 *
 * @package TEC\Events\REST\TEC\V1
 */
class Controller extends Controller_Contract {
	/**
	 * Registers the filters and actions hooks added by the controller.
	 *
	 * @since 6.15.0
	 *
	 * @return void
	 */
	protected function do_register(): void {
		$this->container->register( Endpoints::class );
	}

	/**
	 * Unregisters the filters and actions hooks added by the controller.
	 *
	 * @since 6.15.0
	 *
	 * @return void
	 */
	public function unregister(): void {
		$this->container->get( Endpoints::class )->unregister();
	}
}