Skip to content

Configuration

Chris Harrison edited this page Apr 22, 2021 · 1 revision

Configuration can be supplied by creating a YAML file called .vo-config.yml in the root of your project.

When configuring paths, two special variables are available {rootPath} and {packagePath}. These refer to the root of your project and the root of the vo-generator package (usually in the vendor folder).

The following configuration is available:

namespace: 'ValueObjects'
templateDirs:
  - '{packagePath}/templates'
definitionsRoot: '{rootPath}'
fileExtension: 'voml'
enrichments:
  - '{rootPath}/enrichments'
  • namespace: The namespace that all the value object classes will fall under
  • templateDirs: a list of paths to directories where value object templates can be found
  • definitionsRoot: Where vo-genreator should recursively search for .voml files
  • fileExtension: VOML file extension
  • enrichments: a list of paths to directories where enrichments can be found

Clone this wiki locally