Small update to APServiceBox, adding the NSObject+APServiceBox
category and the defaultBox
method. These two allow you to make objects that will themselves ask for dependencies. This contributes to reduce the amount of code, and in some cases facilitates some difficult situations.
Read more about APServiceBox on its dedicated page.
The first thing you should do is register your services and other dependencies into the default service box.
1 2 3 4 5 |
|
Then call the fillWithDependencies
method in the init
of an object. This will use the default service box to fill the current object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|