Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function createStore(): Store |
||
27 | { |
||
28 | $connection = RedisAdapter::createConnection('redis://'.\getenv('REDIS_HOST'), ['lazy' => true]); |
||
29 | |||
30 | if (!$connection instanceof RedisProxy) { |
||
31 | throw new \RuntimeException('Expected instance of '.RedisProxy::class); |
||
32 | } |
||
33 | |||
34 | return new RedisStore($connection); |
||
35 | } |
||
37 |