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