src/Console/ConsoleRunner.php
public static function createHelperSet($client, LoggerInterface $logger = null)
    {
        $helper = new HelperSet();
        $helper->set(new RedisHelper($client));

        if ($logger) {
            $helper->set(new LoggerHelper($logger));
        }

        return $helper;
    }
public static function createHelperSet($client, LoggerInterface $logger = null)
    {
        $helper = new HelperSet();
        $helper->set(new RedisHelper($client));

        if ($logger) {
            $helper->set(new LoggerHelper($logger));
        }

        return $helper;
    }
public static function createHelperSet ( $ client , LoggerInterface $ logger = null ) { $ helper = new HelperSet ( ) ; $ helper -> set ( new RedisHelper ( $ client ) ) ; if ( $ logger ) { $ helper -> set ( new LoggerHelper ( $ logger ) ) ; } return $ helper ; }
Creates a helper set for the console component

A convenience method (you could always define your own HelperSet separately). Useful for writing cli-config.php.

@param ClientInterface          $client Redis connection
@param \Psr\Log\LoggerInterface $logger Optional logger
@return HelperSet
Creates a helper set for the console component