Leantime/leantime

Move all repo calls from controllers to services

Open

#1532 opened on Mar 31, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)PHP (9,827 stars) (957 forks)batch import
Help Wantedgood-first-issue

Description

The controllers should not be calling the repos directly. Instead they should call a service method. The service layer should be the layer calling the repo.

As such the task is to go through all controllers and update repository calls to be service calls. If the method does not exist in the service a wrapper service method should be created.

Contributor guide