Where to store the handler of controllers?

There is a namespace in which are the controllers
namespace app\controllers\AuthController\
In this namespace is the controller authorization.
A controller can be a processor, for example in this case is a class which sets the token and there is a wrapper for the sessions. Is it okay to put them in the same namespace around? or remove the handler in a separate place?
July 4th 19 at 23:54
1 answer
July 4th 19 at 23:56
This is usually carried in the middleware with a separate namespace:

Find more questions by tags PHP