CrawlObserver and CrawlProfile interfaces
#431
rudiedirkx
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If
CrawlObserverandCrawlProfilewere interfaces, I could have the observer and profile be 1 object. Currently, since my observer and profile HAVE to extend your class, they need a separate object (my custom object) injected into the observer and profile for tracking/progress/state/counting etc. There's nothing wrong with that, but interfaces would be nicer. Generally you want to hint interfaces, not classes, because they can be anything.What I do now:
What I'd like to do:
You can't break
extends CrawlObserverorextends CrawlProfile, but you can make aCrawlObserverInterfaceandCrawlProfileInterfaceand use those internally. Maybe?Beta Was this translation helpful? Give feedback.
All reactions