@@ -9,17 +9,19 @@ document details each.
9
9
$ ./vendor/bin/generate-deps-for-config-factory
10
10
Usage:
11
11
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>
13
13
14
14
Arguments:
15
15
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.
23
25
24
26
25
27
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
33
35
merge any configuration it generates with the return values of that file,
34
36
writing the changes back to the original file.
35
37
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
+
36
45
# # generate-factory-for-class
37
46
38
47
` ` ` bash
0 commit comments