Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52e4032

Browse filesBrowse files
committed
feature symfony#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 symfony#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
Copy full SHA for 52e4032

File tree

Expand file treeCollapse file tree

5 files changed

+758
-0
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+758
-0
lines changed

‎controller.rst

Copy file name to clipboardExpand all lines: controller.rst
+2Lines 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

Copy file name to clipboardExpand all lines: controller/service.rst
+2Lines 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

Copy file name to clipboardExpand all lines: service_container.rst
+5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.