Skip to content

Commit ad95a07

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: fix linelength. refs #12617
2 parents aa4e931 + bb0d48d commit ad95a07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

best_practices.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ the fact that a controller should always return a ``Response`` object.
234234
Use Dependency Injection to Get Services
235235
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
236236

237-
If you extend the base ``AbstractController``, you can only access to the most common services (e.g ``twig``, ``router``, ``doctrine``, etc.), directly from the container via ``$this->container->get()`` or ``$this->get()``.
237+
If you extend the base ``AbstractController``, you can only access to the most
238+
common services (e.g ``twig``, ``router``, ``doctrine``, etc.), directly from the
239+
container via ``$this->container->get()`` or ``$this->get()``.
238240
Instead, you must use dependency injection to fetch services by
239241
:ref:`type-hinting action method arguments <controller-accessing-services>` or
240242
constructor arguments.

0 commit comments

Comments
 (0)