Skip to content

Adding an article to explain the 3.3 changes, and how to upgrade #7921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ Add the ``use`` statement atop the ``Controller`` class and then modify
That's it! You now have access to methods like :ref:`$this->render() <controller-rendering-templates>`
and many others that you'll learn about next.

.. _controller-abstract-versus-controller:

.. tip::

You can extend either ``Controller`` or ``AbstractController``. The difference
Expand Down
2 changes: 2 additions & 0 deletions controller/service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ the route ``_controller`` value:
fully-qualified class name (FQCN). See the
`FrameworkExtraBundle documentation`_ for details.

.. _controller-service-invoke:

.. tip::

If your controller implements the ``__invoke()`` method, you can simply
Expand Down
5 changes: 5 additions & 0 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ in the container.
Creating/Configuring Services in the Container
----------------------------------------------

.. tip::

The recommended way of configuring services changed in Symfony 3.3. For a deep
explanation, see :doc:`/service_container/3.3-di-changes`.

You can also organize your *own* code into services. For example, suppose you need
to show your users a random, happy message. If you put this code in your controller,
it can't be re-used. Instead, you decide to create a new class::
Expand Down
Loading