diff --git a/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php b/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php index 7d7a3ff1..9a65f779 100644 --- a/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php +++ b/src/flextype/core/Console/Commands/Cache/CacheDeleteCommand.php @@ -12,7 +12,6 @@ namespace Flextype\Console\Commands\Cache; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Console\Input\InputArgument; class CacheDeleteCommand extends Command @@ -26,8 +25,6 @@ class CacheDeleteCommand extends Command protected function execute(InputInterface $input, OutputInterface $output): int { - $io = new SymfonyStyle($input, $output); - $key = $input->getArgument('key'); if (cache()->delete($key)) { diff --git a/src/flextype/core/Console/FlextypeConsoleApplication.php b/src/flextype/core/Console/FlextypeConsoleApplication.php index 61ffafcf..ced1724a 100644 --- a/src/flextype/core/Console/FlextypeConsoleApplication.php +++ b/src/flextype/core/Console/FlextypeConsoleApplication.php @@ -20,6 +20,7 @@ use Flextype\Console\Commands\Entries\EntriesHasCommand; use Flextype\Console\Commands\Cache\CacheDeleteCommand; use Flextype\Console\Commands\Cache\CacheSetCommand; use Flextype\Console\Commands\Cache\CacheGetCommand; +use Flextype\Console\Commands\Cache\CacheClearCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -38,6 +39,7 @@ class FlextypeConsoleApplication extends ConsoleApplication console()->add(new CacheSetCommand()); console()->add(new CacheGetCommand()); console()->add(new CacheDeleteCommand()); + console()->add(new CacheClearCommand()); parent::run(); }