Zend\Di\InstanceManager::addTypePreference
Adds a type preference. A type preference is a redirection to a preferred alias or type when an abstract type $interfaceOrAbstract is requested
Signature
public function addTypePreference(string
$interfaceOrAbstract,
string
$preferredImplementation )
Parameters
$interfaceOrAbstract
— string$preferredImplementation
— string
Returns
- self