Skip to content

Commit c06b5d8

Browse files
committed
applied comments
1 parent 2d4ba43 commit c06b5d8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

best_practices/business-logic.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ post URL. Let's create a new ``Slugger`` class inside ``src/Utils/``::
5757
}
5858

5959
If you're using the :ref:`default services.yaml configuration <service-container-services-load-example>`,
60-
this class is auto-registered as a service whose ID is ``App\Utils\Slugger`` (as
61-
an alternative you can use ``Slugger::class``, if the class is already imported
62-
in your code).
60+
this class is auto-registered as a service with the ID ``App\Utils\Slugger`` (to
61+
prevent against typos, import the class and write ``Slugger::class`` in your code).
6362

6463
.. best-practice::
6564

doctrine/dbal.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ How to Use Doctrine DBAL
1313

1414
The `Doctrine`_ Database Abstraction Layer (DBAL) is an abstraction layer that
1515
sits on top of `PDO`_ and offers an intuitive and flexible API for communicating
16-
with the most popular relational databases. In other words, executing queries and
17-
performing other database actions can be achieved with the DBAL library.
16+
with the most popular relational databases. The DBAL library allows you to write
17+
queries independently of your ORM models, e.g. for building reports or direct
18+
data manipulations.
1819

1920
.. tip::
2021

messenger/handler_results.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ buses are central pieces of the application. Read Martin Fowler's
3636
As queries are usually synchronous and expected to be handled once,
3737
getting the result from the handler is a common need.
3838

39-
You can leverage the ``HandleTrait`` in any class that has a ``$messageBus``
40-
property::
39+
To avoid boilerplate code, you can leverage the ``HandleTrait`` in any class
40+
that has a ``$messageBus`` property::
4141

4242
// src/Action/ListItems.php
4343
namespace App\Action;

0 commit comments

Comments
 (0)