mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-19 22:15:05 +02:00
Merge pull request #112 from edpauto/composer
Add composer_cmd as parameter for composer tasks
This commit is contained in:
commit
e54baf726a
|
@ -19,8 +19,9 @@ use Mage\Task\AbstractTask;
|
||||||
*/
|
*/
|
||||||
abstract class ComposerAbstractTask extends AbstractTask
|
abstract class ComposerAbstractTask extends AbstractTask
|
||||||
{
|
{
|
||||||
protected function getComposerPath()
|
protected function getComposerCmd()
|
||||||
{
|
{
|
||||||
return $this->getConfig()->general('composer_path', 'php composer.phar');
|
$composerCmd = $this->getParameter('composer_cmd', 'php composer.phar');
|
||||||
|
return $this->getConfig()->general('composer_cmd', $composerCmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,6 @@ class GenerateAutoloadTask extends ComposerAbstractTask
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
return $this->runCommand($this->getComposerPath() . ' dumpautoload --optimize');
|
return $this->runCommand($this->getComposerCmd() . ' dumpautoload --optimize');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,6 @@ class InstallTask extends ComposerAbstractTask
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
return $this->runCommand($this->getComposerPath() . ' install');
|
return $this->runCommand($this->getComposerCmd() . ' install');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue