mirror of https://github.com/hauke68/Magallanes
Andrés Montañez
13 years ago
5 changed files with 88 additions and 0 deletions
@ -0,0 +1,17 @@
|
||||
<?php |
||||
class Mage_Task_BuiltIn_Symfony_ClearCache |
||||
extends Mage_Task_TaskAbstract |
||||
{ |
||||
public function getName() |
||||
{ |
||||
return 'Symfony v1 - Clear Cache [built-in]'; |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
$command = 'symfony cc'; |
||||
$result = $this->_runLocalCommand($command); |
||||
|
||||
return $result; |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
<?php |
||||
class Mage_Task_BuiltIn_Symfony_ClearCache |
||||
extends Mage_Task_TaskAbstract |
||||
{ |
||||
public function getName() |
||||
{ |
||||
return 'Symfony v1 - Run Migrations [built-in]'; |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
$command = 'symfony doctrine:migrate'; |
||||
$result = $this->_runLocalCommand($command); |
||||
|
||||
return $result; |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
<?php |
||||
class Mage_Task_BuiltIn_Symfony2_CacheClear |
||||
extends Mage_Task_TaskAbstract |
||||
{ |
||||
public function getName() |
||||
{ |
||||
return 'Symfony v2 - Cache Clear [built-in]'; |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
$command = 'app/console cache:clear'; |
||||
$result = $this->_runLocalCommand($command); |
||||
|
||||
return $result; |
||||
} |
||||
} |
@ -0,0 +1,20 @@
|
||||
<?php |
||||
class Mage_Task_BuiltIn_Symfony2_CacheWarmup |
||||
extends Mage_Task_TaskAbstract |
||||
{ |
||||
public function getName() |
||||
{ |
||||
return 'Symfony v2 - Cache Warmup [built-in]'; |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
$command = 'app/console cache:clear'; |
||||
$result = $this->_runLocalCommand($command); |
||||
|
||||
$command = 'app/console cache:warmup'; |
||||
$result = $result && $this->_runLocalCommand($command); |
||||
|
||||
return $result; |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
<?php |
||||
class Mage_Task_BuiltIn_Symfony2_ClearCache |
||||
extends Mage_Task_TaskAbstract |
||||
{ |
||||
public function getName() |
||||
{ |
||||
return 'Symfony v2 - Run Migrations [built-in]'; |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
$command = 'app/console doctrine:migrations:migrate'; |
||||
$result = $this->_runLocalCommand($command); |
||||
|
||||
return $result; |
||||
} |
||||
} |
Loading…
Reference in new issue