Skip to content

Commit 533bfc6

Browse files
committed
minor #8874 Replaced class per id in service definition in XML (nacmartin)
This PR was submitted for the master branch but it was merged into the 3.3 branch instead (closes #8874). Discussion ---------- 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. Commits ------- 2e0e63e Replaced class per id in service definition in XML
2 parents 6c746a7 + 2e0e63e commit 533bfc6

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)