FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

Docs: Where is filter() defined? #435

Open WeeSee opened 3 years ago

WeeSee commented 3 years ago

I struggle to find the code and the API docs for filter(). I am looking for the documentation and/or the function definition and the code.

I cannot find it in this repo nor in the Symphony Docs of Http Client.

Where do I have to look for?

stof commented 3 years ago

Goutte is an implementation of the BrowserKit component, not of the HttpClient component. And BrowserKit returns Crawler objects from the DomCrawler component, which is probably where the filter method you are looking at comes from (there is such a method in Crawler but there is not enough info in your ticket to be sure that's what you are talking about).