File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,8 @@ post URL. Let's create a new ``Slugger`` class inside ``src/Utils/``::
57
57
}
58
58
59
59
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).
63
62
64
63
.. best-practice ::
65
64
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ How to Use Doctrine DBAL
13
13
14
14
The `Doctrine `_ Database Abstraction Layer (DBAL) is an abstraction layer that
15
15
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.
18
19
19
20
.. tip ::
20
21
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ buses are central pieces of the application. Read Martin Fowler's
36
36
As queries are usually synchronous and expected to be handled once,
37
37
getting the result from the handler is a common need.
38
38
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::
41
41
42
42
// src/Action/ListItems.php
43
43
namespace App\Action;
You can’t perform that action at this time.
0 commit comments