Skip to content

Commit

Permalink
Merge branch 'stage'
Browse files Browse the repository at this point in the history
  • Loading branch information
Necrelox committed Jul 26, 2024
2 parents 205cdf6 + 70d5d54 commit 685cd0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/basalt-helper/example/utility/basalt-utility.en.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## **Register a class and retrieve an instance**
## **Register a class, retrieve an instance and unregister it**

=== "TypeScript"

Expand All @@ -23,6 +23,7 @@
SingletonManager.register('ExampleSingleton', ExampleSingleton);
SingletonManager.get<ExampleSingleton>('ExampleSingleton').sayHello();
SingletonManager.get<ExampleSingleton>('ExampleSingleton').sayHello();
SingletonManager.unregister('ExampleSingleton');
```

=== "JavaScript"
Expand All @@ -48,6 +49,7 @@
SingletonManager.register('ExampleSingleton', ExampleSingleton);
SingletonManager.get('ExampleSingleton').sayHello();
SingletonManager.get('ExampleSingleton').sayHello();
SingletonManager.unregister('ExampleSingleton');
```


Expand Down
4 changes: 3 additions & 1 deletion docs/basalt-helper/example/utility/basalt-utility.fr.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## **Enregistrement d'une class et récupération d'une instance**
## **Enregistrement d'une class, récupération d'une instance et desenregistrement d'une instance**

=== "TypeScript"

Expand All @@ -23,6 +23,7 @@
SingletonManager.register('ExampleSingleton', ExampleSingleton);
SingletonManager.get<ExampleSingleton>('ExampleSingleton').sayHello();
SingletonManager.get<ExampleSingleton>('ExampleSingleton').sayHello();
SingletonManager.unregister('ExampleSingleton');
```

=== "JavaScript"
Expand All @@ -48,6 +49,7 @@
SingletonManager.register('ExampleSingleton', ExampleSingleton);
SingletonManager.get('ExampleSingleton').sayHello();
SingletonManager.get('ExampleSingleton').sayHello();
SingletonManager.unregister('ExampleSingleton');
```


Expand Down

0 comments on commit 685cd0c

Please sign in to comment.