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

Appearance settings

Commit 022e2cc

Browse filesBrowse 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
Copy full SHA for 022e2cc

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎service_container/factories.rst

Copy file name to clipboardExpand all lines: service_container/factories.rst
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.