protected static function getFooService($container) { $a =
($container->services
['foo.baz'
] ?? self::
getFoo_BazService($container));
$container->services
['foo'
] =
$instance = \Bar\FooClass::
getInstance('foo',
$a,
['bar' => 'foo is bar', 'foobar' => 'bar'
], true,
$container);
$instance->foo = 'bar';
$instance->moo =
$a;
$instance->qux =
['bar' => 'foo is bar', 'foobar' => 'bar'
];
$instance->
setBar(($container->services
['bar'
] ?? self::
getBar3Service($container)));
$instance->
initialize();
sc_configure($instance);
return $instance;
} /**
* Gets the public 'foo.baz' shared service.
*
* @return \BazClass
*/
protected static function getFoo_BazService($container) {