Skip to content

Commit 4a1b5ea

Browse files
committed
Update README.md with information on the new DI_COMPILER_CLASS_NAME/diClassName option.
1 parent c2807c2 commit 4a1b5ea

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,12 @@ be extremely fast.
272272

273273
You can pass in a few options to DI-Compiler via command line options:
274274

275-
| Environment Variable | Description |
276-
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
277-
| `DI_COMPILER_TSCONFIG_PATH` | The path to the `tsconfig.json` file to use |
278-
| `DI_COMPILER_IDENTIFIER` | A comma-separated list of identifiers that should be considered instances of DIContainer when transforming the source files |
279-
| `DI_COMPILER_DISABLE_CACHE` | If set, no disk caching will be used. |
275+
| Environment Variable | Description |
276+
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
277+
| `DI_COMPILER_TSCONFIG_PATH` | The path to the `tsconfig.json` file to use |
278+
| `DI_COMPILER_IDENTIFIER` | A comma-separated list of identifiers that should be considered instances of `DIContainer` when transforming the source files |
279+
| `DI_COMPILER_CLASS_NAME` | A comma-separated list of additional class names for `DIContainer`, for custom extensions that inherit the class. |
280+
| `DI_COMPILER_DISABLE_CACHE` | If set, no disk caching will be used. |
280281

281282
Alternatively, you can add a `di` property to your `tsconfig` where you can customize its behavior without setting environment variables:
282283

@@ -285,6 +286,7 @@ Alternatively, you can add a `di` property to your `tsconfig` where you can cust
285286
{
286287
"di": {
287288
"identifier": "container",
289+
"diClassName": ["CustomDIContainer", "AnotherDIContainer"],
288290
"disableCache": false
289291
},
290292
"compilerOptions": {

0 commit comments

Comments
 (0)