Skip to content

Commit 8bbecf2

Browse files
committed
Adding an article to explain the 3.3 changes, and how to upgrade
1 parent 369d294 commit 8bbecf2

File tree

5 files changed

+758
-0
lines changed

5 files changed

+758
-0
lines changed

controller.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ Add the ``use`` statement atop the ``Controller`` class and then modify
142142
That's it! You now have access to methods like :ref:`$this->render() <controller-rendering-templates>`
143143
and many others that you'll learn about next.
144144

145+
.. _controller-abstract-versus-controller:
146+
145147
.. tip::
146148

147149
You can extend either ``Controller`` or ``AbstractController``. The difference

controller/service.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ the route ``_controller`` value:
152152
fully-qualified class name (FQCN). See the
153153
`FrameworkExtraBundle documentation`_ for details.
154154

155+
.. _controller-service-invoke:
156+
155157
.. tip::
156158

157159
If your controller implements the ``__invoke()`` method, you can simply

service_container.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ in the container.
117117
Creating/Configuring Services in the Container
118118
----------------------------------------------
119119

120+
.. tip::
121+
122+
The recommended way of configuring services changed in Symfony 3.3. For a deep
123+
explanation, see :doc:`/service_container/3.3-di-changes`.
124+
120125
You can also organize your *own* code into services. For example, suppose you need
121126
to show your users a random, happy message. If you put this code in your controller,
122127
it can't be re-used. Instead, you decide to create a new class::

0 commit comments

Comments
 (0)