Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc98a3da

Browse files
committed
Adjusted doctrine service tip
1 parentf7ec98c commitc98a3da

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎book/doctrine.rst

Lines changed: 6 additions & 7 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp