I assume you want something like:
let database = registry.get::<DatabaseTrait>();
I wrote code for this in another topic:
https://gist.github.com/anonymous/7f3ee0af8cb407dddcc973d3ede5f2a1
I assume you want something like:
let database = registry.get::<DatabaseTrait>();
I wrote code for this in another topic:
https://gist.github.com/anonymous/7f3ee0af8cb407dddcc973d3ede5f2a1