Commit ac2105b
committed
Register
One can easily make a mistake by resolving `TypeMapper` from the container instead of `TypeMapperInterface`. This class wasn't registered as singleton (only the interface) so you always get a new instance without types. By registering them both as one singleton, we make it less error prone.
Closes: #65TypeMapperInterface and TypeMapper as one singleton1 parent 8b5cb05 commit ac2105b
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments