Your IP : 216.73.216.0


Current Path : /home/goldnueh/www/wp-content/plugins/the-events-calendar/src/Events/REST/
Upload File :
Current File : /home/goldnueh/www/wp-content/plugins/the-events-calendar/src/Events/REST/Controller.php

<?php
/**
 * Controller for the Events REST API.
 *
 * @since 6.15.0
 *
 * @package TEC\Events\REST
 */

declare( strict_types=1 );

namespace TEC\Events\REST;

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

use TEC\Events\REST\TEC\V1\Controller as V1_Controller;

/**
 * Controller for the Events REST API.
 *
 * @since 6.15.0
 *
 * @package TEC\Events\REST
 */
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( V1_Controller::class );
	}

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