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
@@ -64,6 +50,8 @@ Generates a secure random byte string using the `Symfony\Component\Security\Core
64
50
```
65
51
66
52
### `UuidStringGenerator`
53
+
***For use this generator you should require the package ```ramsey/uuid``` in your application.***
54
+
67
55
For generate a UUID v4 (or v1):
68
56
69
57
```php
@@ -172,8 +160,14 @@ However, by setting `override` to false, only null properties will have a string
172
160
173
161
174
162
## Custom generators
175
-
You can use your own generators by implementing `GeneratorInterface` and defining the generator in the configuration,
176
-
using either its service or classname.
163
+
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
179
173
[`Symfony\Component\OptionsResolver\OptionsResolver`](http://symfony.com/doc/current/components/options_resolver.html) to set the generator configuration.
@@ -182,30 +176,30 @@ Set default options:
182
176
183
177
```php
184
178
/**
185
-
* @param OptionsResolver $resolver
186
-
* @return mixed
187
-
*/
179
+
* @param OptionsResolver $resolver
180
+
*/
188
181
public function getDefaultOptions(OptionsResolver $resolver)
0 commit comments