Skip to content

Commit

Permalink
Update 2-the-view-layer.rst (#1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
ledeniz authored and GuilhemN committed Apr 23, 2019
1 parent e31339f commit 38046e9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Resources/doc/2-the-view-layer.rst
Expand Up @@ -54,15 +54,16 @@ which adds several convenience methods:
}
}
.. versionadded:: 1.6
The ``setTemplateData`` method was added in 1.6.
.. versionadded:: 2.0
The ``ControllerTrait`` trait was added in 2.0.

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

.. versionadded:: 2.0
The ``ControllerTrait`` trait was added in 2.0.

.. versionadded:: 1.6
The ``setTemplateData`` method was added in 1.6.

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

Expand Down

0 comments on commit 38046e9

Please sign in to comment.