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

Appearance settings

Commit 335e461

Browse filesBrowse files
committed
Fixed after Fabien's review
1 parent 68b7a18 commit 335e461
Copy full SHA for 335e461

File tree

Expand file treeCollapse file tree

2 files changed

+9
-12
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-12
lines changed

‎best_practices/business-logic.rst

Copy file name to clipboardExpand all lines: best_practices/business-logic.rst
+5-8Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ Services: Naming and Configuration
3535
Use autowiring to automate the configuration of application services.
3636

3737
:doc:`Service autowiring </service_container/autowiring>` is a feature provided
38-
by Symfony's Service Container to manage services with minimal configuration.
39-
It reads the type-hints on your constructor (or other methods) and automatically
40-
passes you the correct services. It can also add :doc:`service tags </service_container/tags>`
41-
to the services needed them, such as Twig extensions, event subscribers, etc.
38+
by Symfony's Service Container to manage services with minimal configuration. It
39+
reads the type-hints on your constructor (or other methods) and automatically
40+
passes the correct services to each method. It can also add
41+
:doc:`service tags </service_container/tags>` to the services needed them, such
42+
as Twig extensions, event subscribers, etc.
4243

4344
The blog application needs a utility that can transform a post title (e.g.
4445
"Hello World") into a slug (e.g. "hello-world") to include it as part of the
@@ -61,10 +62,6 @@ If you're using the :ref:`default services.yaml configuration <service-container
6162
this class is auto-registered as a service whose ID is ``App\Utils\Slugger`` (or
6263
simply ``Slugger::class`` if the class is already imported in your code).
6364

64-
Traditionally, the naming convention for a service was a short, but unique
65-
snake case key - e.g. ``app.utils.slugger``. But for most services, you should now
66-
use the class name.
67-
6865
.. best-practice::
6966

7067
The id of your application's services should be equal to their class name,

‎best_practices/creating-the-project.rst

Copy file name to clipboardExpand all lines: best_practices/creating-the-project.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Installing Symfony
88

99
Use Composer and Symfony Flex to create and manage Symfony applications.
1010

11-
`Composer`_ is the package manager used by modern PHP application to manage their
12-
dependencies. `Symfony Flex`_ is a Composer plugin designed to automatize some
13-
of the most common tasks performed in Symfony applications. Using Flex is optional
14-
but recommended because it improves your productivity significantly.
11+
`Composer`_ is the package manager used by modern PHP application to manage
12+
their dependencies. `Symfony Flex`_ is a Composer plugin designed to automate
13+
some of the most common tasks performed in Symfony applications. Using Flex is
14+
optional but recommended because it improves your productivity significantly.
1515

1616
.. best-practice::
1717

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.