public function getEngine($logger)
    {
        $config = Hash::get($this->params, 'config');
        $engine = Queue::engine($config);
        $engine->setLogger($logger);
        if (!empty($this->params['queue'])) {
            $engine->config('queue', $this->params['queue']);
        }

        return $engine;
    }
public function getEngine($logger)
    {
        $config = Hash::get($this->params, 'config');
        $engine = Queue::engine($config);
        $engine->setLogger($logger);
        if (!empty($this->params['queue'])) {
            $engine->config('queue', $this->params['queue']);
        }

        return $engine;
    }
public function getEngine ( $ logger ) { $ config = Hash :: get ( $ this -> params , 'config' ) ; $ engine = Queue :: engine ( $ config ) ; $ engine -> setLogger ( $ logger ) ; if ( ! empty ( $ this -> params [ 'queue' ] ) ) { $ engine -> config ( 'queue' , $ this -> params [ 'queue' ] ) ; } return $ engine ; }
Retrieves a queue engine

@param \Psr\Log\LoggerInterface $logger logger
@return \josegonzalez\Queuesadilla\Engine\Base
Retrieves a queue engine