Rename composer_path into composer_cmd

This commit is contained in:
Kuba Turek 2014-08-20 17:45:30 +02:00
parent 6196cda70b
commit 48420c1c2a
3 changed files with 5 additions and 4 deletions

View file

@ -19,8 +19,9 @@ use Mage\Task\AbstractTask;
*/
abstract class ComposerAbstractTask extends AbstractTask
{
protected function getComposerPath()
protected function getComposerCmd()
{
return $this->getConfig()->general('composer_path', 'php composer.phar');
return $this->getConfig()->general('composer_cmd', 'php composer.phar');
}
}

View file

@ -23,6 +23,6 @@ class GenerateAutoloadTask extends ComposerAbstractTask
*/
public function run()
{
return $this->runCommand($this->getComposerPath() . ' dumpautoload --optimize');
return $this->runCommand($this->getComposerCmd() . ' dumpautoload --optimize');
}
}

View file

@ -23,6 +23,6 @@ class InstallTask extends ComposerAbstractTask
*/
public function run()
{
return $this->runCommand($this->getComposerPath() . ' install');
return $this->runCommand($this->getComposerCmd() . ' install');
}
}