$di->set('ldap_config', $di->lazyNew('Config',
[
'config-param-variable' => $di->lazyRequire('ldap.cfg'),
]
));
$di->set('socket_config', $di->lazyNew('Config',
[
'config-param-variable' => $di->lazyRequire('socket.cfg'),
]
));
$di->set('ldap', $di->lazyNew(
'Ldap',
[
'config-param-variable' => $di->lazyGet('ldap_config')
]
)
);
$di->set('socket', $di->lazyNew(
'Socket',
[
'config-param-variable' => $di->lazyGet('socket_config')
]
)
);
I believe this is what it is mentioned
https://github.com/auraphp/Aura.Di#instance-specific-setter-values .
The only thing you need to change will be `config-param-variable` with what your class constructor variable you have used.
I believe you know what I am telling :) .