@@ -51,8 +51,8 @@ public function testAddTaggedTypes()
51
51
$ container = $ this ->createContainerBuilder ();
52
52
53
53
$ container ->setDefinition ('form.extension ' , $ this ->createExtensionDefinition ());
54
- $ container ->register ('my.type1 ' , __CLASS__ .'_Type1 ' )->addTag ('form.type ' );
55
- $ container ->register ('my.type2 ' , __CLASS__ .'_Type2 ' )->addTag ('form.type ' );
54
+ $ container ->register ('my.type1 ' , __CLASS__ .'_Type1 ' )->addTag ('form.type ' )-> setPublic ( true ) ;
55
+ $ container ->register ('my.type2 ' , __CLASS__ .'_Type2 ' )->addTag ('form.type ' )-> setPublic ( true ) ;
56
56
57
57
$ container ->compile ();
58
58
@@ -73,8 +73,8 @@ public function testAddTaggedTypesToDebugCommand()
73
73
74
74
$ container ->setDefinition ('form.extension ' , $ this ->createExtensionDefinition ());
75
75
$ container ->setDefinition (DebugCommand::class, $ this ->createDebugCommandDefinition ());
76
- $ container ->register ('my.type1 ' , __CLASS__ .'_Type1 ' )->addTag ('form.type ' );
77
- $ container ->register ('my.type2 ' , __CLASS__ .'_Type2 ' )->addTag ('form.type ' );
76
+ $ container ->register ('my.type1 ' , __CLASS__ .'_Type1 ' )->addTag ('form.type ' )-> setPublic ( true ) ;
77
+ $ container ->register ('my.type2 ' , __CLASS__ .'_Type2 ' )->addTag ('form.type ' )-> setPublic ( true ) ;
78
78
79
79
$ container ->compile ();
80
80
@@ -163,6 +163,7 @@ public function testAddTaggedFormTypeExtensionWithoutExtendedTypeAttribute()
163
163
164
164
$ container ->setDefinition ('form.extension ' , $ this ->createExtensionDefinition ());
165
165
$ container ->register ('my.type_extension ' , 'stdClass ' )
166
+ ->setPublic (true )
166
167
->addTag ('form.type_extension ' );
167
168
168
169
$ container ->compile ();
@@ -178,8 +179,8 @@ public function testAddTaggedGuessers()
178
179
$ definition2 ->addTag ('form.type_guesser ' );
179
180
180
181
$ container ->setDefinition ('form.extension ' , $ this ->createExtensionDefinition ());
181
- $ container ->setDefinition ('my.guesser1 ' , $ definition1 );
182
- $ container ->setDefinition ('my.guesser2 ' , $ definition2 );
182
+ $ container ->setDefinition ('my.guesser1 ' , $ definition1 )-> setPublic ( true ) ;
183
+ $ container ->setDefinition ('my.guesser2 ' , $ definition2 )-> setPublic ( true ) ;
183
184
184
185
$ container ->compile ();
185
186
@@ -249,6 +250,7 @@ function (ContainerBuilder $container) {
249
250
private function createExtensionDefinition ()
250
251
{
251
252
$ definition = new Definition ('Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension ' );
253
+ $ definition ->setPublic (true );
252
254
$ definition ->setArguments (array (
253
255
array (),
254
256
array (),
@@ -261,6 +263,7 @@ private function createExtensionDefinition()
261
263
private function createDebugCommandDefinition ()
262
264
{
263
265
$ definition = new Definition ('Symfony\Component\Form\Command\DebugCommand ' );
266
+ $ definition ->setPublic (true );
264
267
$ definition ->setArguments (array (
265
268
$ formRegistry = $ this ->getMockBuilder (FormRegistryInterface::class)->getMock (),
266
269
array (),
0 commit comments