added doctrine as a service to be used in APIs outside controllers/models