Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit335e461

Browse files
committed
Fixed after Fabien's review
1 parent68b7a18 commit335e461

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

‎best_practices/business-logic.rst‎

Lines 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‎

Lines 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 toautomatize 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+
theirdependencies. `Symfony Flex`_ is a Composer plugin designed toautomate
13+
someof the most common tasks performed in Symfony applications. Using Flex is
14+
optionalbut recommended because it improves your productivity significantly.
1515

1616
..best-practice::
1717

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp