1
0
Fork 0

Fix arg order

pull/1/head
Jordi Boggiano 2011-05-23 02:04:17 +02:00
parent 48774ee6ca
commit 92d443d07e
1 changed files with 4 additions and 4 deletions

View File

@ -27,20 +27,20 @@ class Request
public function install($packageName, LinkConstraintInterface $constraint = null)
{
$this->addJob($packageName, $constraint, 'install');
$this->addJob($packageName, 'install', $constraint);
}
public function update($packageName, LinkConstraintInterface $constraint = null)
{
$this->addJob($packageName, $constraint, 'update');
$this->addJob($packageName, 'update', $constraint);
}
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);