Skip to content

Resolve resolved parameter into a service #33

@shouze

Description

@shouze
Given the following parameters:
   const parameters: {
       "some_service_referenced_from_a_parameter": "@bar.serviceB"
   }
And the following services configuration:
   import ServiceA from ./ServiceA;
   import ServiceB from ./ServiceB;

   module.exports = [
       {
           "name": "foo.serviceA",
           "service": ServiceA,
           "arguments": [
                "%some_service_referenced_from_a_parameter%"
           ],
       },
       {
           "name": "bar.serviceB",
           "service": ServiceB,
           "singleton": true
       }
   ]
And I instanciate Skippy with the defined services and parameters
When I ask skippy for service "foo.serviceA"
Then Skippy should resolve parameter "%some_service_referenced_from_a_parameter%" into value "@bar.serviceB"
And Skippy should resolve the value "@bar.serviceB" into a "bar.serviceB" service instance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions