mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-20 14:46:34 +02:00
811c83e13a
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;
|
|
}
|
|
} |