ok
Direktori : /home2/selectio/public_html/3-idiots/vendor/spatie/laravel-sitemap/src/Crawler/ |
Current File : /home2/selectio/public_html/3-idiots/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 $profile; public function shouldCrawlCallback(callable $callback) { $this->profile = $callback; } /* * Determine if the given url should be crawled. */ public function shouldCrawl(UriInterface $url): bool { return ($this->profile)($url); } }