You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-34
Original file line number
Diff line number
Diff line change
@@ -58,41 +58,8 @@ final class MyFirstDecision extends DocBlockArchitecturalDecision {
58
58
}
59
59
```
60
60
61
-
Optionally, you can also annotate appropriate places in your codebase where it might make sense to do so. After that you can run a command to generate an XML document detailing all of your decisions and where they were annotated in your codebase.
62
-
63
-
```shell
64
-
./vendor/bin/architectural-decisions
65
-
```
66
-
67
-
If successful a file named `architectural-decisions.xml` will be generated and stored in the root of your project. You can use this file to generate views into the content, assist in static analysis, or whatever else you might want to do with the ADR information and where it is used in your codebase.
61
+
Optionally, you can also annotate appropriate places in your codebase where it might make sense to do so.
68
62
69
63
### Setting Custom Meta Data
70
64
71
65
There might be additional information you'd like to include with an ArchitecturalDecisionRecord that doesn't fit into the contents of the decision. Perhaps it is additional data that can be used with static analysis. Perhaps you like to include information about who authored the decision or some other meta-data. You can implement the `ArchitecturalDecisionRecord::setMetaData(DOMElement $meta)` method to add whatever data you'd like to the generated XML document. Please review the [DOMDocument](https://www.php.net/domdocument) documentation for how to appropriately add elements and attribute to the `<meta>` element.
72
-
73
-
## Example XML Document
74
-
75
-
This document was generated by parsing this library. We include a lightweight example for why you should use Attributes for ADR!
<contents><![CDATA[Architectural Decision Records (ADR) can be useful in determining why a piece of software is the way it is. While these type of documents can live anywhere, an Attribute in your codebase can be a good place to store this info. For more information, please check out the README in this repo or at https://github.com/cspray/architectural-decision]]></contents>
0 commit comments