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
Copy file name to clipboardExpand all lines: doc/frameworks/laminas.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ use Gedmo\Blameable\BlameableListener;
44
44
use Gedmo\IpTraceable\IpTraceableListener;
45
45
use Gedmo\Loggable\LoggableListener;
46
46
use Gedmo\Mapping\Driver\AttributeReader;
47
+
use Gedmo\Revisionable\RevisionableListener;
47
48
use Gedmo\Sluggable\SluggableListener;
48
49
use Gedmo\SoftDeleteable\SoftDeleteableListener;
49
50
use Gedmo\Sortable\SortableListener;
@@ -83,6 +84,14 @@ return [
83
84
84
85
return $listener;
85
86
},
87
+
'gedmo.listener.revisionable' => function (ContainerInterface $container, string $requestedName): RevisionableListener {
88
+
$listener = new RevisionableListener();
89
+
90
+
// This call configures the listener to use the attribute driver service created above; if using annotations, you will need to provide the appropriate service instead
'gedmo.listener.sluggable' => function (ContainerInterface $container, string $requestedName): SluggableListener {
87
96
$listener = new SluggableListener();
88
97
@@ -141,6 +150,7 @@ return [
141
150
'gedmo.listener.blameable',
142
151
'gedmo.listener.ip_traceable',
143
152
'gedmo.listener.loggable',
153
+
'gedmo.listener.revisionable',
144
154
'gedmo.listener.sluggable',
145
155
'gedmo.listener.soft_deleteable',
146
156
'gedmo.listener.sortable',
@@ -232,8 +242,8 @@ return [
232
242
233
243
## Registering Mapping Configuration
234
244
235
-
When using the [Loggable](../loggable.md), [Translatable](../translatable.md), or [Tree](../tree.md) extensions, you will
236
-
need to register the mappings for these extensions to your object managers.
245
+
When using the [Loggable](../loggable.md), [Revisionable](../revisionable.md), [Translatable](../translatable.md),
246
+
or [Tree](../tree.md) extensions, you will need to register the mappings for these extensions to your object managers.
237
247
238
248
> [!NOTE]
239
249
> These extensions only provide mappings through annotations or attributes, with support for annotations being deprecated. If using annotations, you will need to ensure the [`doctrine/annotations`](https://www.doctrine-project.org/projects/annotations.html) library is installed and configured.
@@ -258,6 +268,7 @@ return [
258
268
'class' => AttributeDriver::class, // If your application is using annotations, use the AnnotationDriver class instead
When using the [Loggable](../loggable.md), [Translatable](../translatable.md), or [Tree](../tree.md) extensions, you will
242
-
need to register the mappings for these extensions to your object managers.
254
+
When using the [Loggable](../loggable.md), [Revisionable](../revisionable.md), [Translatable](../translatable.md),
255
+
or [Tree](../tree.md) extensions, you will need to register the mappings for these extensions to your object managers.
243
256
244
257
> [!NOTE]
245
258
> These extensions only provide mappings through annotations or attributes, with support for annotations being deprecated. If using annotations, you will need to ensure the [`doctrine/annotations`](https://www.doctrine-project.org/projects/annotations.html) library is installed and configured.
0 commit comments