reco4php
reco4php copied to clipboard
Why is DatabaseService needed?
Why is the GraphAware\Reco4PHP\Persistence\DatabaseService needed? (source)
It works as a wrapper for the ClientBuilder. Wouldn't it be simpler to typehint for a ClientInterace directly. That would remove an unneeded abstraction layer.
The initial idea was to make it compatible with other graph dbs in the future, but I completely forgot this idea. So yes it makes sense to just have a typhint on ClientInterface