BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
spatie
/
crawler
/
src
/
CrawlProfiles
📤 Upload
📝 New File
📁 New Folder
Close
Editing: CrawlInternalUrls.php
<?php namespace Spatie\Crawler\CrawlProfiles; use GuzzleHttp\Psr7\Uri; use Psr\Http\Message\UriInterface; class CrawlInternalUrls extends CrawlProfile { protected mixed $baseUrl; public function __construct($baseUrl) { if (! $baseUrl instanceof UriInterface) { $baseUrl = new Uri($baseUrl); } $this->baseUrl = $baseUrl; } public function shouldCrawl(UriInterface $url): bool { return $this->baseUrl->getHost() === $url->getHost(); } }
Save
Cancel