Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update/remove Controller::$uses & Controller::loadModel()
Remove Controller::$uses. It doesn't serve much purpose now other than to waste resources by eagerly loading models. If people need to load multiple models in a single controller they can use repository() to fetch them. This new method will respect any set properties making testing simple. Update and remove tests that are no longer relevant.
- Loading branch information
Showing
2 changed files
with
45 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.