Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve resolved parameter into a service #33

Open
shouze opened this issue May 25, 2016 · 0 comments
Open

Resolve resolved parameter into a service #33

shouze opened this issue May 25, 2016 · 0 comments

Comments

@shouze
Copy link
Member

shouze commented May 25, 2016

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
@armandabric armandabric added this to the The new skippy milestone May 26, 2016
@shouze shouze changed the title Resolve resolved paramater into a service Resolve resolved parameter into a service Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants