You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -157,8 +146,14 @@ However, by setting `override` to false, only null properties will have a string
157
146
158
147
159
148
## Custom generators
160
-
You can use your own generators by implementing `GeneratorInterface` and defining the generator in the configuration,
161
-
using either its service or classname.
149
+
You can use your own generators by implementing `GeneratorInterface` and defining the generator in your `services.yml` file with the tag `vivait_generator.generator` and an `alias`, which will be used to identify the Generator in annotations.
To create configurable generators, implement `ConfigurableGeneratorInterface`. This interface uses
164
159
[`Symfony\Component\OptionsResolver\OptionsResolver`](http://symfony.com/doc/current/components/options_resolver.html) to set the generator configuration.
@@ -167,30 +162,30 @@ Set default options:
167
162
168
163
```php
169
164
/**
170
-
* @param OptionsResolver $resolver
171
-
* @return mixed
172
-
*/
165
+
* @param OptionsResolver $resolver
166
+
*/
173
167
public function getDefaultOptions(OptionsResolver $resolver)
0 commit comments