Made the controller implementation not dependent on the service container.