Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation #68

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,15 @@ You should also include the patch from [#2638686](https://www.drupal.org/node/26

## Configuration

Before you get started, make sure you have configured at least the `module` and `path` options
or the module will not work.
Before you get started, make sure the theme or module that will hold your templates is configured to do so.
Check [the wmtwig documentation](https://github.com/wieni/wmtwig) for more info.

Configuration is stored as service parameters. You can override these in a service YAML file defined in
`$settings['container_yamls']` or in the `services.yml` file of a (custom) module.

```yaml
parameters:
# Main wmcontroller settings
wmcontroller.settings:

# The module that has controllers for your entities
# and if theme (below) is left empty also where your templates ought to be.
module: ''

# The theme where your templates are stored (optional)
theme: ''

# The path to the folder your templates are stored.
# (relative to your module / theme directory)
path: 'templates'

# The controller responsible for forwarding to bundle-specific controllers.
# Only override this if you know what you're doing.
frontcontroller: 'Drupal\wmcontroller\Controller\FrontController'
Expand Down