Skip to content

Commit 38046e9

Browse files
denalenaGuilhemN
authored andcommitted
Update 2-the-view-layer.rst (#1993)
1 parent e31339f commit 38046e9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Resources/doc/2-the-view-layer.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ which adds several convenience methods:
5454
}
5555
}
5656
57-
.. versionadded:: 1.6
58-
The ``setTemplateData`` method was added in 1.6.
57+
.. versionadded:: 2.0
58+
The ``ControllerTrait`` trait was added in 2.0.
5959

6060
There is also a trait called ``ControllerTrait`` for anyone that prefers to not
6161
inject the container into their controller. This requires using setter injection
6262
to set a ``ViewHandlerInterface`` instance via the ``setViewHandler`` method.
6363

64-
.. versionadded:: 2.0
65-
The ``ControllerTrait`` trait was added in 2.0.
64+
65+
.. versionadded:: 1.6
66+
The ``setTemplateData`` method was added in 1.6.
6667

6768
If you need to pass more data in template, not for serialization, you can use ``setTemplateData`` method:
6869

0 commit comments

Comments
 (0)