The signatures of the willCrawl
, crawled
and crawlFailed
all gained an extra parameter $linkText
CrawlObserver
. You should add that parameter to the methods in your custom crawl observers.
- There are no breaking changes to the API. Internally, we shuffled around some checks around crawl limit that might affected some edge cases
- The
CrawlObserver
andCrawlProfile
are upgraded from interfaces to abstract classes, so you have to convert your old observers and profiles.crawled
now receives every successfully crawled uri,crawlFailed
every failed one.
- PHP 7.1 is now required as a minimum version.
- Instead of using our custom
\Spatie\Crawler\Url
object, we're now using thePsr\Http\Message\UriInterface
. Custom Profiles and Observers will need to be changed to have the correct arguments and return types. We're using\GuzzleHttp\Psr7\Uri
as the concrete URI implementation.