Skip to content

Commit 62a5034

Browse files
committed
Laravel 5.5+ update
1 parent e9e5d4a commit 62a5034

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Centrifugo (Centrifuge) [1.6+] PHP Server REDIS & HTTP API implementation for La
66
2. Create `config/centrifugo.php` as provided below
77
3. Add alias in `config/app.php` as provided below
88

9+
>For laravel 5.5+ use version >= "2.5"
10+
911
## Config example `config/centrifugo.php`
1012
```php
1113
<?php
@@ -29,8 +31,7 @@ Centrifugo (Centrifuge) [1.6+] PHP Server REDIS & HTTP API implementation for La
2931
```
3032

3133
## Setting redis as transport
32-
>Read notes about redis transport provided methods below
33-
To set redis as transport :
34+
>Read notes about redis transport provided methods below. To set redis as transport :
3435
3536
1. Add your redis connections add your connection to `config/database.php` as provided below
3637
2. Change `config/centrifugo.php` to redis settings

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
}
1111
],
1212
"require": {
13-
"illuminate/container": "^5.1",
14-
"illuminate/support": "^5.1",
15-
"predis/predis": "^1.0",
13+
"illuminate/container": "5.5.*",
14+
"illuminate/support": "5.5.*",
15+
"predis/predis": "^1.1",
1616
"guzzlehttp/guzzle": "6.*"
1717
},
1818
"autoload": {

src/Centrifugo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function generateToken($userId, $timestamp, $info = '')
5151
}
5252
protected function getTransport($method){
5353
if(config('centrifugo.transport') == 'redis' && in_array($method, $this->rmethods)) {
54-
$client = Redis::connection(config('centrifugo.redisConnection'));
54+
$client = Redis::connection(config('centrifugo.redisConnection'))->client();
5555
return new CRedis($client, config('centrifugo.driver'));
5656
} else {
5757
$client = new Client(['base_uri' => config('centrifugo.baseUrl')]);

0 commit comments

Comments
 (0)