50 $server = $parsed[
'host'];
51 $options = [
'serializer' =>
'none' ];
54 if ( isset( $parsed[
'port'] ) ) {
55 $server .=
":{$parsed['port']}";
57 if ( isset( $parsed[
'query'] ) ) {
58 parse_str( $parsed[
'query'], $options );
60 if ( isset( $parsed[
'pass'] ) ) {
61 $options[
'password'] = $parsed[
'pass'];
63 if ( isset( $parsed[
'path'] ) ) {
64 $channel = str_replace(
'/',
'.', ltrim( $parsed[
'path'],
'/' ) );
67 $conn = $pool->getConnection( $server );
68 if ( $conn !==
false ) {
69 $conn->publish( $channel,
$line );
wfParseUrl( $url)
parse_url() work-alike, but non-broken.
static singleton(array $options)
Send recent change notifications via Redis Pub/Sub.