File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
Fixtures/yaml/integration/instanceof_and_calls Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,16 @@ public function getYamlCompileTests()
207
207
'child_service ' ,
208
208
'child_service_expected ' ,
209
209
);
210
+
211
+ $ container = new ContainerBuilder ();
212
+ $ container ->registerForAutoconfiguration (IntegrationTestStub::class)
213
+ ->addMethodCall ('setSunshine ' , array ('supernova ' ));
214
+ yield array (
215
+ 'instanceof_and_calls ' ,
216
+ 'main_service ' ,
217
+ 'main_service_expected ' ,
218
+ $ container ,
219
+ );
210
220
}
211
221
}
212
222
Original file line number Diff line number Diff line change
1
+ services :
2
+ # main_service should look like this in the end
3
+ main_service_expected :
4
+ class : Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
5
+ public : true
6
+ autoconfigure : true
7
+ calls :
8
+ - [setSunshine, [supernova]]
9
+ - [setSunshine, [warm]]
10
+
Original file line number Diff line number Diff line change
1
+ services :
2
+ _instanceof :
3
+ Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStubParent :
4
+ calls :
5
+ - [setSunshine, [warm]]
6
+ main_service :
7
+ class : Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
8
+ autoconfigure : true
9
+ public : true
You can’t perform that action at this time.
0 commit comments