Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 309dc00

Browse files
committed
Documented -i/--ignore-unresolved flag.
1 parent c5b3d9c commit 309dc00

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

doc/book/console-tools.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ document details each.
99
$ ./vendor/bin/generate-deps-for-config-factory
1010
Usage:
1111

12-
generate-deps-for-config-factory [-h|--help|help] <configFile> <className>
12+
generate-deps-for-config-factory [-h|--help|help] [-i|--ignore-unresolved] <configFile> <className>
1313

1414
Arguments:
1515

16-
-h|--help|help This usage message
17-
<configFile> Path to a config file for which to generate configuration.
18-
If the file does not exist, it will be created. If it does
19-
exist, it must return an array, and the file will be
20-
updated with new configuration.
21-
<className> Name of the class to reflect and for which to generate
22-
dependency configuration.
16+
-h|--help|help This usage message
17+
-i|--ignore-unresolved Ignore classes with unresolved direct dependencies.
18+
<configFile> Path to a config file for which to generate
19+
configuration. If the file does not exist, it will
20+
be created. If it does exist, it must return an
21+
array, and the file will be updated with new
22+
configuration.
23+
<className> Name of the class to reflect and for which to
24+
generate dependency configuration.
2325

2426

2527
Reads the provided configuration file (creating it if it does not exist),
@@ -33,6 +35,13 @@ will read the named configuration file (creating it if it does not exist), and
3335
merge any configuration it generates with the return values of that file,
3436
writing the changes back to the original file.
3537
38+
Since 3.2.1, the tool also supports the `-i` or `--ignore-unresolved` flag.
39+
Use these flags when you have typehints to classes that cannot be resolved.
40+
When you omit the flag, such classes will cause the tool to fail with an
41+
exception message. By adding the flag, you can have it continue and produce
42+
configuration. This option is particularly useful when typehints are on
43+
interfaces or resolve to services served by other abstract factories.
44+
3645
## generate-factory-for-class
3746
3847
```bash

0 commit comments

Comments
 (0)