<?php
/**
 * AdminDashboardServiceProvider class.
 *
 * @package DokanKits\Core\DI\Providers
 * @since   3.0.0
 */

namespace DokanKits\Core\DI\Providers;

use DokanKits\Admin\Dashboard;
use DokanKits\Core\DI\BaseServiceProvider;

/**
 * Admin Dashboard Service Provider
 *
 * Registers and manages the admin dashboard services for Dokan_Kits.
 *
 * @since 1.0.0
 */
class AdminDashboardServiceProvider extends BaseServiceProvider {
	/**
	 * Tag for services added to the container.
	 *
	 * @var array
	 */
	protected array $tags = array( 'admin-dashboard-service' );

	/**
	 * Services provided by this provider
	 *
	 * @var array
	 */
	protected array $services = array(
		Dashboard\Pages\Dashboard::class,
		Dashboard\Pages\Features::class,
		Dashboard\Dashboard::class,
	);

	/**
	 * Register the services.
	 *
	 * @return void
	 */
	public function register(): void {
		// Register regular services.
		foreach ( $this->services as $service ) {
			$definition = $this->share_with_implements_tags( $service );
			$this->add_tags( $definition, $this->tags );
		}
	}
}
