'shared' => FALSE,
] +
$base_service_definition;
$service_definitions[] =
[ 'lazy' => TRUE,
] +
$base_service_definition;
// Test a basic public Reference.
$service_definitions[] =
[ 'arguments' =>
['foo',
new Reference('bar'
)],
'arguments_count' => 2,
'arguments_expected' =>
static::
getCollection(['foo',
static::
getServiceCall('bar'
)]),
] +
$base_service_definition;
// Test a public reference that should not throw an Exception.
$reference =
new Reference('bar', ContainerInterface::NULL_ON_INVALID_REFERENCE
);
$service_definitions[] =
[ 'arguments' =>
[$reference],
'arguments_count' => 1,
'arguments_expected' =>
static::
getCollection([static::
getServiceCall('bar', ContainerInterface::NULL_ON_INVALID_REFERENCE
)]),
] +
$base_service_definition;
// Test a private shared service, denoted by having a Reference.