protected function getListenClosure(SqlLogger $logger)
    {
        return function ($query, $bindings = null, $time = null) use ($logger) {
            $logger->log($query, $bindings, $time);
        };
    }
protected function getListenClosure(SqlLogger $logger)
    {
        return function ($query, $bindings = null, $time = null) use ($logger) {
            $logger->log($query, $bindings, $time);
        };
    }
protected function getListenClosure ( SqlLogger $ logger ) { return function ( $ query , $ bindings = null , $ time = null ) use ( $ logger ) { $ logger -> log ( $ query , $ bindings , $ time ) ; } ; }
Get closure that will be used for listening executed database queries.

@param SqlLogger $logger

@return \Closure
Get closure that will be used for listening executed database queries .