File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -347,15 +347,15 @@ public function getScopeChildren()
347
347
*/
348
348
public function set ($ id , $ service , $ scope = self ::SCOPE_CONTAINER )
349
349
{
350
+ $ id = strtolower ($ id );
351
+
350
352
if ($ this ->isFrozen ()) {
351
353
// setting a synthetic service on a frozen container is alright
352
354
if (!isset ($ this ->definitions [$ id ]) || !$ this ->definitions [$ id ]->isSynthetic ()) {
353
- throw new BadMethodCallException ('Setting service on a frozen container is not allowed ' );
355
+ throw new BadMethodCallException (sprintf ( 'Setting service "%s" on a frozen container is not allowed. ' , $ id ) );
354
356
}
355
357
}
356
358
357
- $ id = strtolower ($ id );
358
-
359
359
unset($ this ->definitions [$ id ], $ this ->aliases [$ id ]);
360
360
361
361
parent ::set ($ id , $ service , $ scope );
You can’t perform that action at this time.
0 commit comments