| @@ 19-27 (lines=9) @@ | ||
| 16 | $this->config = $config['laravel-twitter-streaming-api']; |
|
| 17 | } |
|
| 18 | ||
| 19 | public function publicStream(): PublicStream |
|
| 20 | { |
|
| 21 | return new PublicStream( |
|
| 22 | $this->config['access_token'], |
|
| 23 | $this->config['access_token_secret'], |
|
| 24 | $this->config['consumer_key'], |
|
| 25 | $this->config['consumer_secret'] |
|
| 26 | ); |
|
| 27 | } |
|
| 28 | ||
| 29 | public function userStream(): UserStream |
|
| 30 | { |
|
| @@ 29-37 (lines=9) @@ | ||
| 26 | ); |
|
| 27 | } |
|
| 28 | ||
| 29 | public function userStream(): UserStream |
|
| 30 | { |
|
| 31 | return new UserStream( |
|
| 32 | $this->config['access_token'], |
|
| 33 | $this->config['access_token_secret'], |
|
| 34 | $this->config['consumer_key'], |
|
| 35 | $this->config['consumer_secret'] |
|
| 36 | ); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||