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!
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Zend Expressive Authentication with doctrine | 4 | 1330 | January 3, 2022 | |
How to create Datarepository? Similary UserRepository | 0 | 279 | January 11, 2022 | |
Custom Doctrine Repository Factory example | 7 | 632 | June 24, 2024 | |
Example of authentication and authorization in mezzio app | 1 | 1421 | March 29, 2022 | |
Mezzio authenticate - additional fields | 2 | 319 | June 14, 2022 |