<?php

declare(strict_types=1);

namespace Autogedal\FeedMonitor\Cron;

use Autogedal\FeedMonitor\Model\Checker;

class Check
{
    public function __construct(
        private readonly Checker $checker
    ) {
    }

    public function execute(): void
    {
        // the Magento cron itself is checked by the server crontab (autogedal:feed-monitor:check), not from cron:run
        $this->checker->run(false);
    }
}
