<?php
/**
 * BookiFlex Simple Quota Extension
 *
 * @package    BookiFlex
 * @subpackage SimpleQuota
 * @author     BookiFlex
 * @copyright  Copyright (c) 2025 BookiFlex
 * @license    GPL-2.0-or-later
 *
 * @link       https://bookiflex.com
 */


declare(strict_types=1);
namespace BookiFlex\Extensions\Reservation;

use BookiFlex\Core\Service\Reservation\ReservationStatusManager;
use BookiFlex\Extensions\Reservation\Job\CheckOverdueReservationsJob;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

defined( 'ABSPATH' ) || exit;

class ServiceProvider implements ServiceProviderInterface
{
    public function register(Container $pimple): void
    {
	    $pimple[CheckOverdueReservationsJob::class] = function ($c) {
		    return new CheckOverdueReservationsJob(
			    $c->get(ReservationStatusManager::class)
		    );
	    };
    }
}
