src/VDB/Spider/Resource.php
public function getCrawler()
    {
        if (!$this->crawler instanceof Crawler) {
            $this->crawler = new Crawler('', $this->getUri()->toString());
            $this->crawler->addContent(
                $this->getResponse()->getBody()->__toString(),
                $this->getResponse()->getHeaderLine('Content-Type')
            );
        }
        return $this->crawler;
    }
public function getCrawler()
    {
        if (!$this->crawler instanceof Crawler) {
            $this->crawler = new Crawler('', $this->getUri()->toString());
            $this->crawler->addContent(
                $this->getResponse()->getBody()->__toString(),
                $this->getResponse()->getHeaderLine('Content-Type')
            );
        }
        return $this->crawler;
    }
public function getCrawler ( ) { if ( ! $ this -> crawler instanceof Crawler ) { $ this -> crawler = new Crawler ( '' , $ this -> getUri ( ) -> toString ( ) ) ; $ this -> crawler -> addContent ( $ this -> getResponse ( ) -> getBody ( ) -> __toString ( ) , $ this -> getResponse ( ) -> getHeaderLine ( 'Content-Type' ) ) ; } return $ this -> crawler ; }
Lazy loads a Crawler object based on the ResponseInterface;
@return Crawler
Lazy loads a Crawler object based on the ResponseInterface ;