Pool repository index represents priority, highest index = highest priority
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…
Reference in New Issue