$container->
register('Test\soon_private_service'
) ->
setPublic(true
) ->
addTag('container.private',
['package' => 'foo/bar', 'version' => '1.42'
]) ;
$container->
register('Test\soon_private_service_decorated'
) ->
setPublic(true
) ->
addTag('container.private',
['package' => 'foo/bar', 'version' => '1.42'
]) ;
$container->
register('Test\soon_private_service_decorator'
) ->
setDecoratedService('Test\soon_private_service_decorated'
) ->
setArguments(['Test\soon_private_service_decorator.inner'
]);
$container->
register('Test\private_used_shared_service'
);
$container->
register('Test\private_unused_shared_service'
);
$container->
register('Test\private_used_non_shared_service'
)->
setShared(false
);
$container->
register('Test\private_unused_non_shared_service'
)->
setShared(false
);
$container->
compile();
$expected =
[ 'Test\private_used_shared_service' =>
new ServiceClosureArgument(new Reference('Test\private_used_shared_service'
)),