spatie / crawler

An easy to use, powerful crawler implemented in PHP. Can execute Javascript.
https://freek.dev/308-building-a-crawler-in-php
MIT License
2.51k stars 357 forks source link

Define only needed methods in observer implementation #449

Closed buismaarten closed 9 months ago

buismaarten commented 9 months ago

Hey there,

In some use cases the observer methods like crawled and crawlFailed are not always needed in the implementation. This change allow the developer to only use the necessary methods without having to define other abstract methods.

freekmurze commented 9 months ago

Thanks!