Skip to content

Commit

Permalink
doc: fix modifier registraiton in nette dic
Browse files Browse the repository at this point in the history
Fixed example of MetadataParserFactory setup in .neon file
  • Loading branch information
manweCZ authored Mar 6, 2022
1 parent eccc7ba commit 4ac33cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/config-nette.texy
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,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 4ac33cf

Please sign in to comment.