From f04beb142e4df3e876d7063f864b8b82ac6bf5f3 Mon Sep 17 00:00:00 2001 From: ihsanudin Date: Tue, 9 Jun 2015 17:03:04 +0700 Subject: [PATCH] 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