mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 00:48:57 +02:00
Review and rework Composer tasks.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user