func (c *Container) Resolve() error {
	for _, d := range c.dependencies {
		c.inject(d)
	}
	for _, d := range c.dependencies {
		if dep, ok := d.(Dependency); ok {
			err := dep.Open()
			if err != nil {
				return err
			}
		}
	}
	return nil
}
// Resolve decorates objects with dependencies and initializes them.
Resolve decorates objects with dependencies and initializes them.
// Resolve decorates objects with dependencies and initializes them .
func (c *Container) Resolve() error {
	for _, d := range c.dependencies {
		c.inject(d)
	}
	for _, d := range c.dependencies {
		if dep, ok := d.(Dependency); ok {
			err := dep.Open()
			if err != nil {
				return err
			}
		}
	}
	return nil
}
func ( c * Container ) Resolve ( ) error { for _ , d := range c . dependencies { c . inject ( d ) } for _ , d := range c . dependencies { if dep , ok := d . ( Dependency ) ; ok { err := dep . Open ( ) if err != nil { return err } } } return nil }
Resolve decorates objects with dependencies and initializes them.
Resolve decorates objects with dependencies and initializes them .