Create a service from the cocoon controller so unit tests are easier.

Created on 13 October 2023, about 1 year ago

Currently the cocoon controller takes arguments in it's constructor.

The idea here is to inject the config factory, and let the cocoon controller get the arguments from config.

This has some advantages:
- No longer needs the code get the config in every place that the controller is called.
- There is only one place where the config is called. ( bit of the same as above ) which makes it more maintainable
- Unit tests gets easier as we can prophesize the injected classes

As the signature is changed of the cocoon controller class, we need to change this in the whole project and announce that is it changed for projects extending this class.

🌱 Plan
Status

Needs work

Version

3.1

Component

Code

Created by

🇳🇱Netherlands scuba_fly Netherlands, Vinkeveen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024