aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/system/Bakery/Command/ClearCache.php
diff options
context:
space:
mode:
authorMarvin Borner2018-05-23 22:23:28 +0200
committerMarvin Borner2018-05-23 22:23:28 +0200
commitb66a61addb6c8e66cb26fcf74b532d68891267e4 (patch)
tree05e9449ff25bdc98f68105f41923ccb9f6ef5095 /main/app/system/Bakery/Command/ClearCache.php
parent1d4ef435177a5f9b6d1a289800d933e49be0c550 (diff)
Refactored code, many fixes and improvements in chat backend+frontend
Diffstat (limited to 'main/app/system/Bakery/Command/ClearCache.php')
-rw-r--r--main/app/system/Bakery/Command/ClearCache.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/main/app/system/Bakery/Command/ClearCache.php b/main/app/system/Bakery/Command/ClearCache.php
index d38f382..4d30209 100644
--- a/main/app/system/Bakery/Command/ClearCache.php
+++ b/main/app/system/Bakery/Command/ClearCache.php
@@ -5,6 +5,7 @@
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
+
namespace UserFrosting\System\Bakery\Command;
use Symfony\Component\Console\Input\InputInterface;
@@ -24,17 +25,15 @@ class ClearCache extends BaseCommand
/**
* {@inheritDoc}
*/
- protected function configure()
- {
+ protected function configure() {
$this->setName("clear-cache")
- ->setDescription("Clears the application cache. Includes cache service, Twig and Router cached data");
+ ->setDescription("Clears the application cache. Includes cache service, Twig and Router cached data");
}
/**
* {@inheritDoc}
*/
- protected function execute(InputInterface $input, OutputInterface $output)
- {
+ protected function execute(InputInterface $input, OutputInterface $output) {
$this->io->title("Clearing cache");
// Clear normal cache
@@ -65,8 +64,7 @@ class ClearCache extends BaseCommand
* @access protected
* @return void
*/
- protected function clearIlluminateCache()
- {
+ protected function clearIlluminateCache() {
$this->ci->cache->flush();
}
@@ -76,8 +74,7 @@ class ClearCache extends BaseCommand
* @access protected
* @return bool true/false if operation is successfull
*/
- protected function clearTwigCache()
- {
+ protected function clearTwigCache() {
$cacheHelper = new CacheHelper($this->ci);
return $cacheHelper->clearCache();
}
@@ -88,8 +85,7 @@ class ClearCache extends BaseCommand
* @access protected
* @return bool true/false if operation is successfull
*/
- protected function clearRouterCache()
- {
+ protected function clearRouterCache() {
return $this->ci->router->clearCache();
}
} \ No newline at end of file