8000 bug #8426 Property class is required (alexpts) · symfony/symfony-docs@022e2cc · GitHub
[go: up one dir, main page]

Skip to content

Commit 022e2cc

Browse files
committed
bug #8426 Property class is required (alexpts)
This PR was squashed before being merged into the 3.3 branch (closes #8426). Discussion ---------- Property class is required Without property `class` throw exception: `Uncaught Symfony\Component\DependencyInjection\Exception\RuntimeException: Please add the class to service "$name" even if it is constructed by a factory since we might need to add method calls based on compile-time checks.` Commits ------- f8f0e30 Property class is required
2 parents 583d021 + f8f0e30 commit 022e2cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

service_container/factories.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Configuration of the service container then looks like this:
153153
# app/config/services.yml
154154
155155
app.newsletter_manager:
156+
class: AppBundle\Email\NewsletterManager
156157
# new syntax
157158
factory: 'AppBundle\Email\NewsletterManagerFactory:createNewsletterManager'
158159
# old syntax

0 commit comments

Comments
 (0)
0