PHP 8.2.30
Preview: CrawlObserver.php Size: 999 B
/proc/thread-self/root/home/byroehnu/easetack.com/vendor/spatie/crawler/src/CrawlObservers/CrawlObserver.php

<?php

namespace Spatie\Crawler\CrawlObservers;

use GuzzleHttp\Exception\RequestException;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\UriInterface;

abstract class CrawlObserver
{
    /*
     * Called when the crawler will crawl the url.
     */
    public function willCrawl(UriInterface $url, ?string $linkText): void {}

    /*
     * Called when the crawler has crawled the given url successfully.
     */
    public function crawled(
        UriInterface $url,
        ResponseInterface $response,
        ?UriInterface $foundOnUrl = null,
        ?string $linkText = null,
    ): void {}

    /*
     * Called when the crawler had a problem crawling the given url.
     */
    public function crawlFailed(
        UriInterface $url,
        RequestException $requestException,
        ?UriInterface $foundOnUrl = null,
        ?string $linkText = null,
    ): void {}

    /*
     * Called when the crawl has ended.
     */
    public function finishedCrawling(): void {}
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
999 B lrw-rw-rw- 2025-02-24 09:20:47
Edit Download
2.16 KB lrw-rw-rw- 2025-02-24 09:20:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).