The callable that creates the service
The arguments that will be send to the callable when called, order matters
The tags that the service will receive
Contains the last created instance of the service, this is reused when the service is a shared service
Indicate wether the service behaves like a singleton; returning the same instance on repeated requests
Method retrieve()
Create an instance from this definition
Returns a mixed
Method addArgument
Add an argument (at the end) to the definition
Parameters:
Method addTag()
Tag the service
Parameters:
Resolve arguments that are container ids
Returns an Array
(the resolved arguments)
Private method
Create an callable that can creates instances for this definitions
Parameters:
fnParam must be a string.
(the container parameter that contains the constructor or factory function)
type must be a string.
(either 'c' for constructor or 'f' for factory)
Returns a Function
Apply an defintion configuration
Parameters:
Returns a Definition
the id of the definition