Fix arg order
parent
48774ee6ca
commit
92d443d07e
|
@ -27,20 +27,20 @@ class Request
|
||||||
|
|
||||||
public function install($packageName, LinkConstraintInterface $constraint = null)
|
public function install($packageName, LinkConstraintInterface $constraint = null)
|
||||||
{
|
{
|
||||||
$this->addJob($packageName, $constraint, 'install');
|
$this->addJob($packageName, 'install', $constraint);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update($packageName, LinkConstraintInterface $constraint = null)
|
public function update($packageName, LinkConstraintInterface $constraint = null)
|
||||||
{
|
{
|
||||||
$this->addJob($packageName, $constraint, 'update');
|
$this->addJob($packageName, 'update', $constraint);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function remove($packageName, LinkConstraintInterface $constraint = null)
|
public function remove($packageName, LinkConstraintInterface $constraint = null)
|
||||||
{
|
{
|
||||||
$this->addJob($packageName, $constraint, 'remove');
|
$this->addJob($packageName, 'remove', $constraint);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function addJob($packageName, LinkConstraintInterface $constraint, $cmd)
|
protected function addJob($packageName, $cmd, LinkConstraintInterface $constraint = null)
|
||||||
{
|
{
|
||||||
$packages = $this->pool->whatProvides($packageName, $constraint);
|
$packages = $this->pool->whatProvides($packageName, $constraint);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue