mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			425 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			425 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
class Mage_Task_BuiltIn_Symfony2_CacheClear
 | 
						|
    extends Mage_Task_TaskAbstract
 | 
						|
{
 | 
						|
    public function getName()
 | 
						|
    {
 | 
						|
        return 'Symfony v2 - Cache Clear [built-in]';
 | 
						|
    }
 | 
						|
 | 
						|
    public function run()
 | 
						|
    {
 | 
						|
    	// Options
 | 
						|
    	$env = $this->getParameter('env', 'dev');
 | 
						|
 | 
						|
        $command = 'app/console cache:clear --env=' . $env;
 | 
						|
        $result = $this->_runLocalCommand($command);
 | 
						|
 | 
						|
        return $result;
 | 
						|
    }
 | 
						|
} |