1 | <?php |
||
25 | class RedisSentinelServiceProvider extends ServiceProvider |
||
26 | { |
||
27 | /** |
||
28 | * Boot the service by registering extensions with Laravel's cache, queue, |
||
29 | * and session managers for the "redis-sentinel" driver. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function boot() |
||
50 | |||
51 | /** |
||
52 | * Bind the "redis-sentinel" database driver to the application service |
||
53 | * container. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function register() |
||
81 | |||
82 | /** |
||
83 | * Add "redis-sentinel" as an available driver option to the Laravel cache |
||
84 | * manager. |
||
85 | * |
||
86 | * @param CacheManager $cache The Laravel cache manager |
||
87 | * |
||
88 | * @return void |
||
89 | */ |
||
90 | protected function addRedisSentinelCacheDriver(CacheManager $cache) |
||
101 | |||
102 | /** |
||
103 | * Add "redis-sentinel" as an available driver option to the Laravel |
||
104 | * session manager. |
||
105 | * |
||
106 | * @param SessionManager $session The Laravel session manager |
||
107 | * |
||
108 | * @return void |
||
109 | */ |
||
110 | protected function addRedisSentinelSessionHandler(SessionManager $session) |
||
124 | |||
125 | /** |
||
126 | * Add "redis-sentinel" as an available queue connection driver option to |
||
127 | * the Laravel queue manager. |
||
128 | * |
||
129 | * @param QueueManager $queue The Laravel queue manager |
||
130 | * |
||
131 | * @return void |
||
132 | */ |
||
133 | protected function addRedisSentinelQueueConnector(QueueManager $queue) |
||
141 | |||
142 | /** |
||
143 | * Determine whether this package should replace Laravel's Redis API |
||
144 | * ("Redis" facade and "redis" service binding). |
||
145 | * |
||
146 | * @return bool True if "database.redis.driver" configuration option is |
||
147 | * set to "sentinel" |
||
148 | */ |
||
149 | protected function shouldOverrideLaravelApi() |
||
155 | |||
156 | /** |
||
157 | * Get the fully-qualified class name of the RedisSentinelManager class |
||
158 | * for the current version of Laravel. |
||
159 | * |
||
160 | * @return string The class name of the appropriate RedisSentinelManager |
||
161 | * with its namespace |
||
162 | */ |
||
163 | protected function getVersionedRedisSentinelManagerClass() |
||
171 | } |
||
172 |