Uecode\Bundle\QPushBundle\Provider\FileProvider::__construct PHP Method

__construct() public method

public __construct ( $name, array $options, $client, Doctrine\Common\Cache\Cache $cache, Logger $logger )
$options array
$cache Doctrine\Common\Cache\Cache
$logger Monolog\Logger
    public function __construct($name, array $options, $client, Cache $cache, Logger $logger)
    {
        $this->name = $name;
        /* md5 only contain numeric and A to F, so it is file system safe */
        $this->queuePath = $options['path'] . DIRECTORY_SEPARATOR . str_replace('-', '', hash('md5', $name));
        $this->options = $options;
        $this->cache = $cache;
        $this->logger = $logger;
    }