return function DContainerConfigurator
$container) { $container->
parameters() ->
set('unit_enum', FooUnitEnum::BAR
) ->
set('enum_array',
[FooUnitEnum::BAR, FooUnitEnum::FOO
]);
$services =
$container->
services();
$services->
defaults()->
public();
$services->
set('service_container', ContainerInterface::
class) ->
synthetic();
$services->
set(FooClassWithEnumAttribute::
class) ->
args([FooUnitEnum::BAR
]);
};