mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
20 lines
425 B
PHP
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)();
|
|
}
|
|
}
|