Added ability to use service container for configuring controllers