Skip to content

Commit c98a3da

Browse files
committed
Adjusted doctrine service tip
1 parent f7ec98c commit c98a3da

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

book/doctrine.rst

+6-7
Original file line numberDiff line numberDiff line change
@@ -519,13 +519,12 @@ of the bundle:
519519

520520
.. tip::
521521

522-
This page shows working with Doctrine within a controller. You may also
523-
want to work with Doctrine elsewhere in your application. The
524-
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getDoctrine`
525-
method of the controller returns the ``doctrine`` service, you can work with
526-
this in the same way elsewhere by injecting this into your own
527-
services. See :doc:`/book/service_container` for more on creating
528-
your own services.
522+
This article shows working with Doctrine from within a controller by using
523+
the :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getDoctrine`
524+
method of the controller. This method is a shortcut to get the
525+
``doctrine`` service. You can work with Doctrine anywhere else
526+
by injecting that service in the service. See
527+
:doc:`/book/service_container` for more on creating your own services.
529528

530529
Take a look at the previous example in more detail:
531530

0 commit comments

Comments
 (0)