Skip to content

Commit 2e0e63e

Browse files
nacmartinxabbuh
authored andcommitted
Replaced class per id in service definition in XML
Using only `class` results in `Top-level services must have "id" attribute, none found`. Whereas using `id` instead of `class` is understood, and it is coherent with the YAML and PHP versions of the same definition.
1 parent 6c746a7 commit 2e0e63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/alias_private.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ services.
116116
http://symfony.com/schema/dic/services/services-1.0.xsd">
117117
118118
<services>
119-
<service class="AppBundle\Mail\PhpMailer" public="false" />
119+
<service id="AppBundle\Mail\PhpMailer" public="false" />
120120
121121
<service id="app.mailer" alias="AppBundle\Mail\PhpMailer" />
122122
</services>

0 commit comments

Comments
 (0)