| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class GetClusterNodesCommand extends Command |
||
| 11 | { |
||
| 12 | protected $signature = 'supercache:get-cluster-nodes |
||
| 13 | {--connection_name= : (opzionale) nome della connessione redis } |
||
| 14 | '; |
||
| 15 | protected $description = 'Comando per ottenere i nodi del cluster sulla connessione specificata'; |
||
| 16 | protected RedisConnector $redis; |
||
| 17 | protected GetClusterNodesService $service; |
||
| 18 | |||
| 19 | public function __construct(RedisConnector $redis, GetClusterNodesService $service) |
||
| 20 | { |
||
| 21 | parent::__construct(); |
||
| 22 | $this->redis = $redis; |
||
| 23 | $this->service = $service; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @throws \JsonException |
||
| 28 | */ |
||
| 29 | public function handle(): void |
||
| 37 | } |
||
| 38 | } |
||
| 40 |