@@ -335,8 +335,8 @@ private function addServiceInlinedDefinitions($id, $definition)
335335 $ code .= $ this ->addNewInstance ($ id , $ sDefinition , '$ ' .$ name , ' = ' );
336336
337337 if (!$ this ->hasReference ($ id , $ sDefinition ->getMethodCalls (), true ) && !$ this ->hasReference ($ id , $ sDefinition ->getProperties (), true )) {
338- $ code .= $ this ->addServiceMethodCalls (null , $ sDefinition , $ name );
339338 $ code .= $ this ->addServiceProperties (null , $ sDefinition , $ name );
339+ $ code .= $ this ->addServiceMethodCalls (null , $ sDefinition , $ name );
340340 $ code .= $ this ->addServiceConfigurator (null , $ sDefinition , $ name );
341341 }
342342
@@ -507,8 +507,8 @@ private function addServiceInlinedDefinitionsSetup($id, Definition $definition)
507507 }
508508
509509 $ name = (string ) $ this ->definitionVariables ->offsetGet ($ iDefinition );
510- $ code .= $ this ->addServiceMethodCalls (null , $ iDefinition , $ name );
511510 $ code .= $ this ->addServiceProperties (null , $ iDefinition , $ name );
511+ $ code .= $ this ->addServiceMethodCalls (null , $ iDefinition , $ name );
512512 $ code .= $ this ->addServiceConfigurator (null , $ iDefinition , $ name );
513513 }
514514
@@ -663,8 +663,8 @@ private function addService($id, Definition $definition)
663663 $ this ->addServiceInlinedDefinitions ($ id , $ definition ).
664664 $ this ->addServiceInstance ($ id , $ definition ).
665665 $ this ->addServiceInlinedDefinitionsSetup ($ id , $ definition ).
666- $ this ->addServiceMethodCalls ($ id , $ definition ).
667666 $ this ->addServiceProperties ($ id , $ definition ).
667+ $ this ->addServiceMethodCalls ($ id , $ definition ).
668668 $ this ->addServiceConfigurator ($ id , $ definition ).
669669 $ this ->addServiceReturn ($ id , $ definition )
670670 ;
0 commit comments