You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}, Nette\InvalidStateException::class, "Service 'one' (type of Good): Class Bad8 has private constructor.");
176
+
}, Nette\InvalidStateException::class, "Service 'one' (type of Good): Class Bad8 has private constructor. (used in Good::__construct)");
177
177
178
178
179
179
abstractclass Bad9
@@ -239,7 +239,7 @@ services:
239
239
b: stdClass
240
240
bad: ConstructorParam(@\stdClass)
241
241
');
242
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of ConstructorParam): Multiple services of type stdClass found: a, b");
242
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of ConstructorParam): Multiple services of type stdClass found: a, b (used in ConstructorParam::__construct)");
243
243
244
244
245
245
// autowiring fail in chain
@@ -261,7 +261,7 @@ services:
261
261
b: stdClass
262
262
bad: MethodParam()::foo(@\stdClass)
263
263
');
264
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of MethodParam): Multiple services of type stdClass found: a, b");
264
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of MethodParam): Multiple services of type stdClass found: a, b (used in method foo)");
265
265
266
266
267
267
// autowiring fail in argument
@@ -272,7 +272,7 @@ services:
272
272
b: stdClass
273
273
bad: Good(ConstructorParam())
274
274
');
275
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (needed by \$x in ConstructorParam::__construct())");
275
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (needed by \$x in ConstructorParam::__construct()) (used in Good::__construct)");
276
276
277
277
278
278
// forced autowiring fail in argument
@@ -283,7 +283,7 @@ services:
283
283
b: stdClass
284
284
bad: Good(ConstructorParam(@\stdClass))
285
285
');
286
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b");
286
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (used in ConstructorParam::__construct)");
287
287
288
288
289
289
// autowiring fail in chain in argument
@@ -294,7 +294,7 @@ services:
294
294
b: stdClass
295
295
bad: Good(MethodParam()::foo())
296
296
');
297
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (needed by \$x in MethodParam::foo())");
297
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (needed by \$x in MethodParam::foo()) (used in Good::__construct)");
298
298
299
299
300
300
// forced autowiring fail in chain in argument
@@ -305,7 +305,7 @@ services:
305
305
b: stdClass
306
306
bad: Good(MethodParam()::foo(@\stdClass))
307
307
');
308
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b");
308
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (used in method foo)");
309
309
310
310
311
311
// forced autowiring fail in property passing
@@ -319,7 +319,7 @@ services:
319
319
setup:
320
320
- $a = @\stdClass
321
321
');
322
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b");
322
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (used in @bad::\$a)");
323
323
324
324
325
325
// autowiring fail in rich property passing
@@ -333,7 +333,7 @@ services:
333
333
setup:
334
334
- $a = MethodParam()::foo(@\stdClass)
335
335
');
336
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b");
336
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (used in method foo)");
337
337
338
338
339
339
// autowiring fail in method calling
@@ -361,7 +361,7 @@ services:
361
361
setup:
362
362
- bar(@\stdClass)
363
363
');
364
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b");
364
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (used in @bad::bar)");
365
365
366
366
367
367
// autowiring fail in rich method calling
@@ -375,4 +375,4 @@ services:
375
375
setup:
376
376
- bar(MethodParam()::foo(@\stdClass))
377
377
');
378
-
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b");
378
+
}, Nette\DI\ServiceCreationException::class, "Service 'bad' (type of Good): Multiple services of type stdClass found: a, b (used in method foo)");
0 commit comments