Skip to content

Commit 508b971

Browse files
authored
Update best_practices.rst
1 parent 377d585 commit 508b971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ 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't access services
237+
If you extend the base ``AbstractController``, you can't access private services
238238
directly from the container via ``$this->container->get()`` or ``$this->get()``.
239239
Instead, you must use dependency injection to fetch services by
240240
:ref:`type-hinting action method arguments <controller-accessing-services>` or

0 commit comments

Comments
 (0)