Optionally register a controller with the container.