We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 450573e + e3601f0 commit cd3daf9Copy full SHA for cd3daf9
README.md
@@ -126,15 +126,9 @@ class WaterFactory {
126
@Service()
127
class CoffeeMaker {
128
129
- private beanFactory: BeanFactory;
130
- private sugarFactory: SugarFactory;
131
- private waterFactory: WaterFactory;
132
-
133
- constructor(beanFactory: BeanFactory, sugarFactory: SugarFactory, waterFactory: WaterFactory) {
134
- this.beanFactory = beanFactory;
135
- this.sugarFactory = sugarFactory;
136
- this.waterFactory = waterFactory;
137
- }
+ constructor(private beanFactory: BeanFactory,
+ private sugarFactory: SugarFactory,
+ private waterFactory: WaterFactory) {}
138
139
make() {
140
this.beanFactory.create();
0 commit comments