public function setTypePreference($interfaceOrAbstract, array $preferredImplementations)
        {
            $key = ($this->hasAlias($interfaceOrAbstract)) ? 'alias:' . $interfaceOrAbstract : $interfaceOrAbstract;

            foreach ($preferredImplementations as $preferredImplementation) {
                $this->addTypePreference($key, $preferredImplementation);
            }

            return $this;
        }
public function setTypePreference($interfaceOrAbstract, array $preferredImplementations)
        {
            $key = ($this->hasAlias($interfaceOrAbstract)) ? 'alias:' . $interfaceOrAbstract : $interfaceOrAbstract;

            foreach ($preferredImplementations as $preferredImplementation) {
                $this->addTypePreference($key, $preferredImplementation);
            }

            return $this;
        }
public function setTypePreference ( $ interfaceOrAbstract , array $ preferredImplementations ) { $ key = ( $ this -> hasAlias ( $ interfaceOrAbstract ) ) ? 'alias:' . $ interfaceOrAbstract : $ interfaceOrAbstract ; foreach ( $ preferredImplementations as $ preferredImplementation ) { $ this -> addTypePreference ( $ key , $ preferredImplementation ) ; } return $ this ; }
Set type preference

@param  string          $interfaceOrAbstract
@param  array           $preferredImplementations
@return InstanceManager
Set type preference