There is some duplicated code that is responsible for setting the service definition for the currently logged in user user.current. It's both in the services bootstrap Bootstrap\Services and the Controller\Authentication::loginAction controller.
To remedy this we could create class that is responsible for handling the user's session and the currently logged in user service definition. This could also be extended in future to give administrators the functionality to log users out (invalidating their session) and so on.
There is some duplicated code that is responsible for setting the service definition for the currently logged in user
user.current
. It's both in the services bootstrapBootstrap\Services
and theController\Authentication::loginAction
controller.To remedy this we could create class that is responsible for handling the user's session and the currently logged in user service definition. This could also be extended in future to give administrators the functionality to log users out (invalidating their session) and so on.