File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -519,13 +519,12 @@ of the bundle:
519
519
520
520
.. tip ::
521
521
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.
529
528
530
529
Take a look at the previous example in more detail:
531
530
You can’t perform that action at this time.
0 commit comments