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.

28 lines
559 B

<?php
namespace Mage\Task\BuiltIn\Composer;
use Mage\Task\ErrorWithMessageException;
class GenerateAutoloadTask extends ComposerAbstractTask
{
/**
* Returns the Title of the Task
* @return string
*/
public function getName()
{
return 'Generate autoload via Composer [built-in]';
}
/**
* Runs the task
*
* @return boolean
* @throws ErrorWithMessageException
*/
public function run()
{
return $this->runCommand($this->getComposerCmd() . ' dumpautoload --optimize');
}
}