It seams to me that a better place to do the authentication is the Front Controller, you can add annotations/properties to the Routes and have the Front Controller check based on the matched route.
Having the Router return a different controller action based on login status seams like it could cause WTF moments for someone not familiar with the project.
Comments
Comments are closed.
Great explanation of where to put auth and acls in your application flow
Nice talk :) .
One suggestion : Next time when you share your screen, increase the font size for better visibility.
Thank you once again for sharing your experience.
It seams to me that a better place to do the authentication is the Front Controller, you can add annotations/properties to the Routes and have the Front Controller check based on the matched route.
Having the Router return a different controller action based on login status seams like it could cause WTF moments for someone not familiar with the project.