Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 487 Bytes

UPGRADE-2.0.md

File metadata and controls

24 lines (16 loc) · 487 Bytes

UPGRADE FROM 1.x to 2.0

Browser

  • The Browser::get() return content, not a DomCrawler.

    Before:

    $crawler = $this->get('anime_db.ani_db.browser')->get('anime', ['aid' => 1]);

    After:

    use Symfony\Component\DomCrawler\Crawler;
    
    $content = $this->get('anime_db.ani_db.browser')->get('anime', ['aid' => 1]);
    $crawler = new Crawler($content);
  • The Browser::get() method now is not cache response.