Files
shlink/module/Core/src/Crawling/CrawlingHelper.php
2024-11-09 09:55:51 +01:00

20 lines
425 B
PHP

<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Crawling;
use Shlinkio\Shlink\Core\ShortUrl\Repository\CrawlableShortCodesQueryInterface;
readonly class CrawlingHelper implements CrawlingHelperInterface
{
public function __construct(private CrawlableShortCodesQueryInterface $query)
{
}
public function listCrawlableShortCodes(): iterable
{
yield from ($this->query)();
}
}