DEV Community

loading...

Discussion on: PHP - Create your own PHP Authentication

Collapse
bogkonstantin profile image
Konstantin Bogomolov • Edited

Why you decided to use trait here?

Collapse
fadymr profile image
F.R Michel Author

It Can be use anywhere to check password or crypte password ( example In a Controller ) without call UserManager if you want and I don't want to have a class with a lot of lines so that it is easily maintainable.