mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Renamed classes to match the command
This commit is contained in:
		
							parent
							
								
									384aa3cf79
								
							
						
					
					
						commit
						50f2781649
					
				@ -1,17 +1,17 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
class Mage_Task_BuiltIn_Symfony_ClearCache
 | 
					class Mage_Task_BuiltIn_Symfony_Migrate
 | 
				
			||||||
    extends Mage_Task_TaskAbstract
 | 
					    extends Mage_Task_TaskAbstract
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public function getName()
 | 
					    public function getName()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return 'Symfony v1 - Run Migrations [built-in]';
 | 
					        return 'Symfony v1 - Run Migrations [built-in]';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
        
 | 
					
 | 
				
			||||||
    public function run()
 | 
					    public function run()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $command = 'symfony doctrine:migrate';
 | 
					        $command = 'symfony doctrine:migrate';
 | 
				
			||||||
        $result = $this->_runLocalCommand($command);
 | 
					        $result = $this->_runLocalCommand($command);
 | 
				
			||||||
        
 | 
					
 | 
				
			||||||
        return $result;
 | 
					        return $result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -1,17 +1,17 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
class Mage_Task_BuiltIn_Symfony2_ClearCache
 | 
					class Mage_Task_BuiltIn_Symfony2_Migrate
 | 
				
			||||||
    extends Mage_Task_TaskAbstract
 | 
					    extends Mage_Task_TaskAbstract
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public function getName()
 | 
					    public function getName()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return 'Symfony v2 - Run Migrations [built-in]';
 | 
					        return 'Symfony v2 - Run Migrations [built-in]';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
        
 | 
					
 | 
				
			||||||
    public function run()
 | 
					    public function run()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $command = 'app/console doctrine:migrations:migrate';
 | 
					        $command = 'app/console doctrine:migrations:migrate';
 | 
				
			||||||
        $result = $this->_runLocalCommand($command);
 | 
					        $result = $this->_runLocalCommand($command);
 | 
				
			||||||
        
 | 
					
 | 
				
			||||||
        return $result;
 | 
					        return $result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user