Command uses service instead of self initialized class.
Bug fix with passing doctrine to service.