From f04beb142e4df3e876d7063f864b8b82ac6bf5f3 Mon Sep 17 00:00:00 2001 From: ihsanudin Date: Tue, 9 Jun 2015 17:03:04 +0700 Subject: [PATCH 1/2] add front controller cleaning task --- .../Symfony2/FrontControllerCleanTask.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php diff --git a/Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php b/Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php new file mode 100644 index 0000000..1038150 --- /dev/null +++ b/Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php @@ -0,0 +1,23 @@ + + */ +class FrontControllerCleanTask extends AbstractTask +{ + public function getName() + { + return 'Cleaning Project'; + } + + public function run() + { + $command = 'rm -rf web/app_*.php'; + $result = $this->runCommandRemote($command); + + return $result; + } +} \ No newline at end of file From 59c539a1ba15c52afd98e283148ea8a24f56bf30 Mon Sep 17 00:00:00 2001 From: Muhamad Surya Iksanudin Date: Wed, 10 Jun 2015 06:18:08 +0700 Subject: [PATCH 2/2] Fix PSR-2 Fix PSR-2 code style --- Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php b/Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php index 1038150..7a0032f 100644 --- a/Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php +++ b/Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php @@ -20,4 +20,4 @@ class FrontControllerCleanTask extends AbstractTask return $result; } -} \ No newline at end of file +}