mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	ADVICE: there is no Backwards Compatibility with custom tasks, those using the _config instance will be broken or those using the getEnvironmentName().
		
			
				
	
	
		
			21 lines
		
	
	
		
			345 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			345 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
abstract class Mage_Command_CommandAbstract
 | 
						|
{
 | 
						|
    protected $_config = null;
 | 
						|
 | 
						|
    public abstract function run();
 | 
						|
 | 
						|
    public function setConfig(Mage_Config $config)
 | 
						|
    {
 | 
						|
        $this->_config = $config;
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     *
 | 
						|
     * @return Mage_Config
 | 
						|
     */
 | 
						|
    public function getConfig()
 | 
						|
    {
 | 
						|
        return $this->_config;
 | 
						|
    }
 | 
						|
} |