File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ Next, register this as a service and tag it with ``form.type``:
100
100
services :
101
101
app.form.type.task :
102
102
class : AppBundle\Form\TaskType
103
+ arguments : ['@doctrine.orm.entity_manager']
103
104
tags :
104
105
- { name: form.type, alias: app_task }
105
106
@@ -113,6 +114,7 @@ Next, register this as a service and tag it with ``form.type``:
113
114
114
115
<services >
115
116
<service id =" app.form.type.task" class =" AppBundle\Form\TaskType" >
117
+ <argument type =" service" id =" doctrine.orm.entity_manager" />
116
118
<tag name =" form.type" alias =" app_task" />
117
119
</service >
118
120
</services >
@@ -126,6 +128,7 @@ Next, register this as a service and tag it with ``form.type``:
126
128
'app.form.type.task',
127
129
'AppBundle\Form\TaskType'
128
130
)
131
+ ->addArgument('@doctrine.orm.entity_manager')
129
132
->addTag('form.type', array(
130
133
'alias' => 'app_task',
131
134
))
You can’t perform that action at this time.
0 commit comments