Skip to content

Commit 52e4032

Browse files
committed
feature #7921 Adding an article to explain the 3.3 changes, and how to upgrade (weaverryan)
This PR was submitted for the master branch but it was merged into the 3.3 branch instead (closes #7921). Discussion ---------- Adding an article to explain the 3.3 changes, and how to upgrade This article is aimed at existing Symfony users: I want to explain how the new DI features work and the "why" behind them a bit more (and at a deeper technical level). I'll also write a blog post on symfony.com pointing to this article. Review - related to how things are explained, clarity, technical points, etc - is quite needed! :) Thanks! Commits ------- 8bbecf2 Adding an article to explain the 3.3 changes, and how to upgrade
2 parents 369d294 + 8bbecf2 commit 52e4032

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)