You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
634 B

<?php
namespace Mage\Task\BuiltIn\Composer;
use Mage\Task\AbstractTask;
use Mage\Task\ErrorWithMessageException;
class InstallTask extends AbstractTask
{
/**
* Returns the Title of the Task
* @return string
*/
public function getName()
{
return 'Install vendors via Composer [built-in]';
}
/**
* Runs the task
*
* @return boolean
* @throws ErrorWithMessageException
*/
public function run()
{
$composerPath = $this->getConfig()->general('composer_path', 'php composer.phar');
return $this->runCommand($composerPath . ' install');
}
}