1 | <?php |
||
19 | class VersionedManagerFactory |
||
20 | { |
||
21 | /** |
||
22 | * Detects the application version and provides configuration values. |
||
23 | * |
||
24 | * @var ConfigurationLoader |
||
25 | */ |
||
26 | protected $config; |
||
27 | |||
28 | /** |
||
29 | * Create a factory using the provided configuration. |
||
30 | * |
||
31 | * @param ConfigurationLoader $config Detects the application version and |
||
32 | * provides configuration values. |
||
33 | */ |
||
34 | public function __construct(ConfigurationLoader $config) |
||
38 | |||
39 | /** |
||
40 | * Create an instance of the package's core Redis Sentinel service. |
||
41 | * |
||
42 | * @param ConfigurationLoader $config Detects the application version and |
||
43 | * provides configuration values. |
||
44 | * |
||
45 | * @return \Monospice\LaravelRedisSentinel\Contracts\Factory A configured |
||
46 | * Redis Sentinel connection manager. |
||
47 | */ |
||
48 | public static function make(ConfigurationLoader $config) |
||
52 | |||
53 | /** |
||
54 | * Create an instance of the package's core Redis Sentinel service. |
||
55 | * |
||
56 | * @return \Monospice\LaravelRedisSentinel\Contracts\Factory A configured |
||
57 | * Redis Sentinel connection manager. |
||
58 | */ |
||
59 | public function makeInstance() |
||
67 | |||
68 | /** |
||
69 | * Get the fully-qualified class name of the RedisSentinelManager class |
||
70 | * for the current version of Laravel or Lumen. |
||
71 | * |
||
72 | * @return string The class name of the appropriate RedisSentinelManager |
||
73 | * with its namespace. |
||
74 | */ |
||
75 | protected function getVersionedRedisSentinelManagerClass() |
||
91 | } |
||
92 |