File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ export class ContainerInstance {
105105 if ( service && this !== globalContainer ) {
106106 const clonedService = Object . assign ( { } , service ) ;
107107 clonedService . value = undefined ;
108- return this . getServiceValue ( identifier , clonedService ) ;
108+ const value = this . getServiceValue ( identifier , clonedService ) ;
109+ this . set ( identifier , value ) ;
110+ return value ;
109111 }
110112
111113 return this . getServiceValue ( identifier , service ) ;
@@ -151,6 +153,11 @@ export class ContainerInstance {
151153 */
152154 set ( token : Token < any > , value : any ) : this;
153155
156+ /**
157+ * Sets a value for the given type or service name in the container.
158+ */
159+ set ( token : ServiceIdentifier , value : any ) : this;
160+
154161 /**
155162 * Sets a value for the given type or service name in the container.
156163 */
You can’t perform that action at this time.
0 commit comments