From ebaf4e939517b14499e403e0856a3012594c0103 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Wed, 25 May 2016 09:49:48 +0100 Subject: [PATCH] WIP --- app/Subscribers/CommandSubscriber.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/Subscribers/CommandSubscriber.php b/app/Subscribers/CommandSubscriber.php index fdd38ea1..b73a7b6e 100644 --- a/app/Subscribers/CommandSubscriber.php +++ b/app/Subscribers/CommandSubscriber.php @@ -65,7 +65,7 @@ class CommandSubscriber * * @return void */ - public function fire(Command $command) + public function backup(Command $command) { $command->line('Backing up database...'); @@ -84,4 +84,20 @@ class CommandSubscriber $command->line('Backup completed!'); } + + /** + * Clear the cachet settings cache. + * + * @param \Illuminate\Console\Command $command + * + * @return void + */ + public function clear(Command $command) + { + $command->line('Clearing settings cache...'); + + $this->loader->clear(); + + $command->line('Settings cache cleared!'); + } }