mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			612 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			612 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace Mage\Task\BuiltIn\Composer;
 | 
						|
 | 
						|
use Mage\Task\BuiltIn\Composer\ComposerAbstractTask;
 | 
						|
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');
 | 
						|
    }
 | 
						|
}
 |