From b25255565530f03cb63f797fee6439bf5547031f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81s=20Montan=CC=83ez?= Date: Tue, 27 Mar 2012 20:13:49 -0300 Subject: [PATCH] New Built-In Tasks for Symfony v1 and v2. --- Mage/Task/BuiltIn/Symfony/ClearCache.php | 17 +++++++++++++++++ Mage/Task/BuiltIn/Symfony/Migrate.php | 17 +++++++++++++++++ Mage/Task/BuiltIn/Symfony2/CacheClear.php | 17 +++++++++++++++++ Mage/Task/BuiltIn/Symfony2/CacheWarmup.php | 20 ++++++++++++++++++++ Mage/Task/BuiltIn/Symfony2/Migrate.php | 17 +++++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 Mage/Task/BuiltIn/Symfony/ClearCache.php create mode 100644 Mage/Task/BuiltIn/Symfony/Migrate.php create mode 100644 Mage/Task/BuiltIn/Symfony2/CacheClear.php create mode 100644 Mage/Task/BuiltIn/Symfony2/CacheWarmup.php create mode 100644 Mage/Task/BuiltIn/Symfony2/Migrate.php diff --git a/Mage/Task/BuiltIn/Symfony/ClearCache.php b/Mage/Task/BuiltIn/Symfony/ClearCache.php new file mode 100644 index 0000000..c2523f2 --- /dev/null +++ b/Mage/Task/BuiltIn/Symfony/ClearCache.php @@ -0,0 +1,17 @@ +_runLocalCommand($command); + + return $result; + } +} \ No newline at end of file diff --git a/Mage/Task/BuiltIn/Symfony/Migrate.php b/Mage/Task/BuiltIn/Symfony/Migrate.php new file mode 100644 index 0000000..676b3a3 --- /dev/null +++ b/Mage/Task/BuiltIn/Symfony/Migrate.php @@ -0,0 +1,17 @@ +_runLocalCommand($command); + + return $result; + } +} \ No newline at end of file diff --git a/Mage/Task/BuiltIn/Symfony2/CacheClear.php b/Mage/Task/BuiltIn/Symfony2/CacheClear.php new file mode 100644 index 0000000..6fc0190 --- /dev/null +++ b/Mage/Task/BuiltIn/Symfony2/CacheClear.php @@ -0,0 +1,17 @@ +_runLocalCommand($command); + + return $result; + } +} \ No newline at end of file diff --git a/Mage/Task/BuiltIn/Symfony2/CacheWarmup.php b/Mage/Task/BuiltIn/Symfony2/CacheWarmup.php new file mode 100644 index 0000000..db11df6 --- /dev/null +++ b/Mage/Task/BuiltIn/Symfony2/CacheWarmup.php @@ -0,0 +1,20 @@ +_runLocalCommand($command); + + $command = 'app/console cache:warmup'; + $result = $result && $this->_runLocalCommand($command); + + return $result; + } +} \ No newline at end of file diff --git a/Mage/Task/BuiltIn/Symfony2/Migrate.php b/Mage/Task/BuiltIn/Symfony2/Migrate.php new file mode 100644 index 0000000..189a38c --- /dev/null +++ b/Mage/Task/BuiltIn/Symfony2/Migrate.php @@ -0,0 +1,17 @@ +_runLocalCommand($command); + + return $result; + } +} \ No newline at end of file