Skip to content

Commit 6b5c39c

Browse files
committed
minor #8951 use a class based service ID (xabbuh)
This PR was merged into the 3.3 branch. Discussion ---------- use a class based service ID Commits ------- 9fad2d4 use a class based service ID
2 parents 5a2b3b5 + 9fad2d4 commit 6b5c39c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

service_container/factories.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ Configuration of the service container then looks like this:
152152
153153
# app/config/services.yml
154154
155-
app.newsletter_manager:
156-
class: AppBundle\Email\NewsletterManager
155+
AppBundle\Email\NewsletterManager:
157156
# new syntax
158157
factory: 'AppBundle\Email\NewsletterManagerFactory:createNewsletterManager'
159158
# old syntax

0 commit comments

Comments
 (0)