From 92b7dd3335a6572debeacfb5faa82c63a5e67888 Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Fri, 8 Jun 2018 20:03:25 +0200
Subject: Some minor fixes
---
main/app/system/Bakery/Command/ClearCache.php | 180 +++++++++++++-------------
1 file changed, 90 insertions(+), 90 deletions(-)
(limited to 'main/app/system/Bakery/Command/ClearCache.php')
diff --git a/main/app/system/Bakery/Command/ClearCache.php b/main/app/system/Bakery/Command/ClearCache.php
index 4d30209..ca8e5ed 100644
--- a/main/app/system/Bakery/Command/ClearCache.php
+++ b/main/app/system/Bakery/Command/ClearCache.php
@@ -1,91 +1,91 @@
-setName("clear-cache")
- ->setDescription("Clears the application cache. Includes cache service, Twig and Router cached data");
- }
-
- /**
- * {@inheritDoc}
- */
- protected function execute(InputInterface $input, OutputInterface $output) {
- $this->io->title("Clearing cache");
-
- // Clear normal cache
- $this->io->writeln(" > Clearing Illuminate cache instance", OutputInterface::VERBOSITY_VERBOSE);
- $this->clearIlluminateCache();
-
- // Clear Twig cache
- $this->io->writeln(" > Clearing Twig cached data", OutputInterface::VERBOSITY_VERBOSE);
- if (!$this->clearTwigCache()) {
- $this->io->error("Failed to clear Twig cached data. Make sure you have write access to the `app/cache/twig` directory.");
- exit(1);
- }
-
- // Clear router cache
- $this->io->writeln(" > Clearing Router cache file", OutputInterface::VERBOSITY_VERBOSE);
- if (!$this->clearRouterCache()) {
- $file = $this->ci->config['settings.routerCacheFile'];
- $this->io->error("Failed to delete Router cache file. Make sure you have write access to the `$file` file.");
- exit(1);
- }
-
- $this->io->success("Cache cleared !");
- }
-
- /**
- * Flush the cached data from the cache service
- *
- * @access protected
- * @return void
- */
- protected function clearIlluminateCache() {
- $this->ci->cache->flush();
- }
-
- /**
- * Clear the Twig cache using the Twig CacheHelper class
- *
- * @access protected
- * @return bool true/false if operation is successfull
- */
- protected function clearTwigCache() {
- $cacheHelper = new CacheHelper($this->ci);
- return $cacheHelper->clearCache();
- }
-
- /**
- * Clear the Router cache data file
- *
- * @access protected
- * @return bool true/false if operation is successfull
- */
- protected function clearRouterCache() {
- return $this->ci->router->clearCache();
- }
+setName("clear-cache")
+ ->setDescription("Clears the application cache. Includes cache service, Twig and Router cached data");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function execute(InputInterface $input, OutputInterface $output) {
+ $this->io->title("Clearing cache");
+
+ // Clear normal cache
+ $this->io->writeln(" > Clearing Illuminate cache instance", OutputInterface::VERBOSITY_VERBOSE);
+ $this->clearIlluminateCache();
+
+ // Clear Twig cache
+ $this->io->writeln(" > Clearing Twig cached data", OutputInterface::VERBOSITY_VERBOSE);
+ if (!$this->clearTwigCache()) {
+ $this->io->error("Failed to clear Twig cached data. Make sure you have write access to the `app/cache/twig` directory.");
+ exit(1);
+ }
+
+ // Clear router cache
+ $this->io->writeln(" > Clearing Router cache file", OutputInterface::VERBOSITY_VERBOSE);
+ if (!$this->clearRouterCache()) {
+ $file = $this->ci->config['settings.routerCacheFile'];
+ $this->io->error("Failed to delete Router cache file. Make sure you have write access to the `$file` file.");
+ exit(1);
+ }
+
+ $this->io->success("Cache cleared !");
+ }
+
+ /**
+ * Flush the cached data from the cache service
+ *
+ * @access protected
+ * @return void
+ */
+ protected function clearIlluminateCache() {
+ $this->ci->cache->flush();
+ }
+
+ /**
+ * Clear the Twig cache using the Twig CacheHelper class
+ *
+ * @access protected
+ * @return bool true/false if operation is successfull
+ */
+ protected function clearTwigCache() {
+ $cacheHelper = new CacheHelper($this->ci);
+ return $cacheHelper->clearCache();
+ }
+
+ /**
+ * Clear the Router cache data file
+ *
+ * @access protected
+ * @return bool true/false if operation is successfull
+ */
+ protected function clearRouterCache() {
+ return $this->ci->router->clearCache();
+ }
}
\ No newline at end of file
--
cgit v1.2.3