-
Notifications
You must be signed in to change notification settings - Fork 0
2. Controller
kurosawa93 edited this page Dec 19, 2018
·
1 revision
For ramenauth, the controller is divided into three parts. One for validating and preparing all the necessary data to be sent to next step, which is AuthControllerTrait class, One for storing all the logic, which is AuthManager class, and then class AuthController for wiring necessary model and processor. And then, the trait will be called by adding use AuthControllerTrait; to the main class.
To use those controller in your class, you can safely add use AuthControllerTrait; inside your class. This also means now your class can access all methods inside AuthControllerTrait class, and give any routing to those method.