Mezzio Authentication Doctrine User Repository Adapter Feedback Requested

Howdy! I’m using mezzio in combination with swoole in a pretty good sized project right now. Recently I was having some issues with my authentication module in mezzio only to discover that one of the compounding problems was instantiating a new PDO connection with the mezzio authentication PDODatabase user repository factory. Not only this, I had to write a lot of extra custom queries to get the PDO Database adapter to work with my doctrine setup. Naturally, I decided to write my own user repository for mezzio-authentication. I’d really like feedback of any kind and or ideas on how this could be integrated with mezzio-authentication (possibly). I realize my code is somewhat opinionated, I’m not sure if it is too opinionated or not. Thank you in advance!