/** * @return Client */ public function getClient() { if (null === $this->client) { $this->client = $this->container->getPredis()->getClient(); } return $this->client; }
/** * @param InputInterface $input * @param OutputInterface $output * @return void */ protected function execute(InputInterface $input, OutputInterface $output) { $output->write('Flushing all Redis cache: '); $this->container->getPredis()->getClient()->flushall(); $output->write('[ <fg=green>DONE</fg=green> ]', true); }