2. Advanced Configuration¶
By default SonataTranslation
provides a set of default interfaces you should implement to see your models
automatically handled.
If you have specific needs and can’t use them, but this bundle gives you other ways to use it.
Here is an example with PHPCR :
- YAML
1 2 3 4 5 6 7 8 9 10 11 12 13
# config/packages/sonata_translation.yaml sonata_translation: phpcr: enabled: true implements: # list your custom interfaces here - MyProject\MyBundle\Model\CustomTranslatableInterface instanceof: # list your specific models or abstract classes here - MyProject\MyBundle\Model\AbstractCustomTranslatable