src/Factory/SimpleFactory.php
public function addDependencyRetriever(Retriever $dependencyRetriever)
    {
        if (!array_key_exists($dependencyRetriever->getName(), $this->dependencyRetrievers)) {
            $this->dependencyRetrievers[$dependencyRetriever->getName()] = $dependencyRetriever;
        }
    }
public function addDependencyRetriever(Retriever $dependencyRetriever)
    {
        if (!array_key_exists($dependencyRetriever->getName(), $this->dependencyRetrievers)) {
            $this->dependencyRetrievers[$dependencyRetriever->getName()] = $dependencyRetriever;
        }
    }
public function addDependencyRetriever ( Retriever $ dependencyRetriever ) { if ( ! array_key_exists ( $ dependencyRetriever -> getName ( ) , $ this -> dependencyRetrievers ) ) { $ this -> dependencyRetrievers [ $ dependencyRetriever -> getName ( ) ] = $ dependencyRetriever ; } }
Adds another dependency retriever.

The newly added retriever will receive a lower priority than any
existing retrievers. If a retriever with the same name already exists,
it is kept.

@param \BartFeenstra\DependencyRetriever\Retriever\Retriever $dependencyRetriever
Adds another dependency retriever .