HOME


Mini Shell 1.0
DIR: /home/cardxfeb/public_html/vendor/spatie/laravel-sitemap/src/Crawler/
Upload File :
Current File : //home/cardxfeb/public_html/vendor/spatie/laravel-sitemap/src/Crawler/Profile.php
<?php

namespace Spatie\Sitemap\Crawler;

use Psr\Http\Message\UriInterface;
use Spatie\Crawler\CrawlProfiles\CrawlProfile;

class Profile extends CrawlProfile
{
    /** @var callable */
    protected $callback;

    public function shouldCrawlCallback(callable $callback): void
    {
        $this->callback = $callback;
    }

    public function shouldCrawl(UriInterface $url): bool
    {
        return ($this->callback)($url);
    }
}