Right now the #[ServiceDelegate] Attribute can only be used to create explicit object types. However, we should be able to use this pattern to create any value that might be put into a service; including callables, strings, and other scalar types. If we allow a service to be defined by name and then allow a factory to create that named service it should be able to provide functionality for non-object container values.
Right now the
#[ServiceDelegate]
Attribute can only be used to create explicit object types. However, we should be able to use this pattern to create any value that might be put into a service; including callables, strings, and other scalar types. If we allow a service to be defined by name and then allow a factory to create that named service it should be able to provide functionality for non-object container values.