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 | 1332 | January 3, 2022 | |
How to create Datarepository? Similary UserRepository | 0 | 279 | January 11, 2022 | |
Login workflow and example for Expressive 3 | 7 | 2589 | February 16, 2019 | |
Doctrine Migrations do not work in Mezzio | 3 | 3236 | May 21, 2020 | |
Example of authentication and authorization in mezzio app | 1 | 1426 | March 29, 2022 |