Skip to content

Commit

Permalink
doc: fix modifier registration in nette dic
Browse files Browse the repository at this point in the history
  • Loading branch information
manweCZ authored and hrach committed Mar 6, 2022
1 parent abf726b commit 68946d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/config-nette.md
Expand Up @@ -95,8 +95,7 @@ To parse own modifiers add `addModifier` call to parser factory's setup or defin
services:
nextras.orm.metadataParserFactory:
setup:
- addModifier(modifier-name, [YouClass, parseMethod]) // static callback
- addModifier(second-modifie, @myservice::parseMethod) // service reference
- addModifier(modifier, [@myservice, parseMethod])
```

Orm allows injecting dependencies into your entities. This is dependency provider responsibility, feel free provide custom implementation:
Expand Down

0 comments on commit 68946d6

Please sign in to comment.