@@ -76,7 +76,7 @@ public function __construct()
7676 */
7777 protected function getBarService ()
7878 {
79- $ a = $ this ->get ('foo.baz ' );
79+ $ a = $ {( $ _ = isset ( $ this ->services [ ' foo.baz ' ]) ? $ this -> services [ ' foo.baz ' ] : $ this -> get ('foo.baz ' )) && false ?: ' _ ' } ;
8080
8181 $ this ->services ['bar ' ] = $ instance = new \Bar \FooClass ('foo ' , $ a , $ this ->getParameter ('foo_bar ' ));
8282
@@ -97,7 +97,7 @@ protected function getBazService()
9797 {
9898 $ this ->services ['baz ' ] = $ instance = new \Baz ();
9999
100- $ instance ->setFoo ($ this ->get ('foo_with_inline ' ));
100+ $ instance ->setFoo ($ {( $ _ = isset ( $ this ->services [ ' foo_with_inline ' ]) ? $ this -> services [ ' foo_with_inline ' ] : $ this -> get ('foo_with_inline ' )) && false ?: ' _ ' } );
101101
102102 return $ instance ;
103103 }
@@ -113,7 +113,7 @@ protected function getBazService()
113113 protected function getClosureProxyService ()
114114 {
115115 return $ this ->services ['closure_proxy ' ] = new \BarClass (/** @closure-proxy BarClass::getBaz */ function () {
116- return $ this ->get ('closure_proxy ' )->getBaz ();
116+ return $ {( $ _ = isset ( $ this ->services [ ' closure_proxy ' ]) ? $ this -> services [ ' closure_proxy ' ] : $ this -> get ('closure_proxy ' )) && false ?: ' _ ' } ->getBaz ();
117117 });
118118 }
119119
@@ -217,7 +217,7 @@ protected function getDeprecatedServiceService()
217217 */
218218 protected function getFactoryServiceService ()
219219 {
220- return $ this ->services ['factory_service ' ] = $ this ->get ('foo.baz ' )->getInstance ();
220+ return $ this ->services ['factory_service ' ] = $ {( $ _ = isset ( $ this ->services [ ' foo.baz ' ]) ? $ this -> services [ ' foo.baz ' ] : $ this -> get ('foo.baz ' )) && false ?: ' _ ' } ->getInstance ();
221221 }
222222
223223 /**
@@ -243,14 +243,14 @@ protected function getFactoryServiceSimpleService()
243243 */
244244 protected function getFooService ()
245245 {
246- $ a = $ this ->get ('foo.baz ' );
246+ $ a = $ {( $ _ = isset ( $ this ->services [ ' foo.baz ' ]) ? $ this -> services [ ' foo.baz ' ] : $ this -> get ('foo.baz ' )) && false ?: ' _ ' } ;
247247
248248 $ this ->services ['foo ' ] = $ instance = \Bar \FooClass::getInstance ('foo ' , $ a , array ($ this ->getParameter ('foo ' ) => 'foo is ' .$ this ->getParameter ('foo ' ).'' , 'foobar ' => $ this ->getParameter ('foo ' )), true , $ this );
249249
250250 $ instance ->foo = 'bar ' ;
251251 $ instance ->moo = $ a ;
252252 $ instance ->qux = array ($ this ->getParameter ('foo ' ) => 'foo is ' .$ this ->getParameter ('foo ' ).'' , 'foobar ' => $ this ->getParameter ('foo ' ));
253- $ instance ->setBar ($ this ->get ('bar ' ));
253+ $ instance ->setBar ($ {( $ _ = isset ( $ this ->services [ ' bar ' ]) ? $ this -> services [ ' bar ' ] : $ this -> get ('bar ' )) && false ?: ' _ ' } );
254254 $ instance ->initialize ();
255255 sc_configure ($ instance );
256256
@@ -315,7 +315,7 @@ protected function getLazyContextService()
315315 {
316316 return $ this ->services ['lazy_context ' ] = new \LazyContext (new RewindableGenerator (function () {
317317 yield 0 => 'foo ' ;
318- yield 1 => $ this ->get ('foo.baz ' );
318+ yield 1 => $ {( $ _ = isset ( $ this ->services [ ' foo.baz ' ]) ? $ this -> services [ ' foo.baz ' ] : $ this -> get ('foo.baz ' )) && false ?: ' _ ' } ;
319319 yield 2 => array ($ this ->getParameter ('foo ' ) => 'foo is ' .$ this ->getParameter ('foo ' ).'' , 'foobar ' => $ this ->getParameter ('foo ' ));
320320 yield 3 => true ;
321321 yield 4 => $ this ;
@@ -333,7 +333,7 @@ protected function getLazyContextService()
333333 protected function getLazyContextIgnoreInvalidRefService ()
334334 {
335335 return $ this ->services ['lazy_context_ignore_invalid_ref ' ] = new \LazyContext (new RewindableGenerator (function () {
336- yield 0 => $ this ->get ('foo.baz ' );
336+ yield 0 => $ {( $ _ = isset ( $ this ->services [ ' foo.baz ' ]) ? $ this -> services [ ' foo.baz ' ] : $ this -> get ('foo.baz ' )) && false ?: ' _ ' } ;
337337 if ($ this ->has ('invalid ' )) {
338338 yield 1 => $ this ->get ('invalid ' , ContainerInterface::NULL_ON_INVALID_REFERENCE );
339339 }
@@ -354,7 +354,7 @@ protected function getMethodCall1Service()
354354
355355 $ this ->services ['method_call1 ' ] = $ instance = new \Bar \FooClass ();
356356
357- $ instance ->setBar ($ this ->get ('foo ' ));
357+ $ instance ->setBar ($ {( $ _ = isset ( $ this ->services [ ' foo ' ]) ? $ this -> services [ ' foo ' ] : $ this -> get ('foo ' )) && false ?: ' _ ' } );
358358 $ instance ->setBar ($ this ->get ('foo2 ' , ContainerInterface::NULL_ON_INVALID_REFERENCE ));
359359 if ($ this ->has ('foo3 ' )) {
360360 $ instance ->setBar ($ this ->get ('foo3 ' , ContainerInterface::NULL_ON_INVALID_REFERENCE ));
@@ -426,7 +426,7 @@ protected function getConfiguratorServiceService()
426426 {
427427 $ this ->services ['configurator_service ' ] = $ instance = new \ConfClass ();
428428
429- $ instance ->setFoo ($ this ->get ('baz ' ));
429+ $ instance ->setFoo ($ {( $ _ = isset ( $ this ->services [ ' baz ' ]) ? $ this -> services [ ' baz ' ] : $ this -> get ('baz ' )) && false ?: ' _ ' } );
430430
431431 return $ instance ;
432432 }
@@ -482,7 +482,7 @@ protected function getInlinedService()
482482 $ this ->services ['inlined ' ] = $ instance = new \Bar ();
483483
484484 $ instance ->pub = 'pub ' ;
485- $ instance ->setBaz ($ this ->get ('baz ' ));
485+ $ instance ->setBaz ($ {( $ _ = isset ( $ this ->services [ ' baz ' ]) ? $ this -> services [ ' baz ' ] : $ this -> get ('baz ' )) && false ?: ' _ ' } );
486486
487487 return $ instance ;
488488 }
0 commit comments