Pool repository index represents priority, highest index = highest priority

main
Nils Adermann 13 years ago
parent 7558731830
commit b52d6d881a

@ -45,6 +45,11 @@ class Pool
} }
} }
public function getPriority(RepositoryInterface $repo)
{
return array_search($repo, $this->repositories, true);
}
/** /**
* Retrieves the package object for a given package id. * Retrieves the package object for a given package id.
* *

Loading…
Cancel
Save