fixed loading yaml configuration in DI Factory