magallanes/Mage/Task/BuiltIn/Composer/InstallTask.php
2016-07-21 17:53:21 +03:00

29 lines
615 B
PHP

<?php
namespace Mage\Task\BuiltIn\Composer;
use Mage\Task\ErrorWithMessageException;
class InstallTask extends ComposerAbstractTask
{
/**
* 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()
{
$dev = $this->getParameter('dev', true);
return $this->runCommand($this->getComposerCmd() . ' install' . ($dev ? ' --dev' : ' --no-dev'));
}
}