Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Introduce 'delegate' method to ValueFinder or DependencyInjector #13

@tlmcclatchey

Description

@tlmcclatchey

A recommendation was made to have a method available that allows a callback to be responsible for the creation of a specific class. This could technically be done by a service provider in the service-management library, however, that's better suited for a type of class (has interface, has attribute, etc) but is heavy impact performance-wise if it needs to iterate through multiple theoretical nested loops just to find the specific class name.

'delegate' would instruct the DI to use the provided callback for the instantiating of a class, which would pass class name, parameters and instance of the $DI as parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions