| 1 | <?php |
||
| 13 | class PutIndexMappingsHandler |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var IndexConfigurationRepository |
||
| 17 | */ |
||
| 18 | private $configurationRepository; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param IndexConfigurationRepository $configurationRepository |
||
| 22 | */ |
||
| 23 | public function __construct(IndexConfigurationRepository $configurationRepository) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Handle index creation command |
||
| 30 | * |
||
| 31 | * @param Client $client |
||
| 32 | * @param string $index |
||
| 33 | */ |
||
| 34 | public function handle(Client $client, $index, $type) |
||
| 53 | |||
| 54 | private function isInvalid($config, $type) |
||
| 62 | } |
||
| 63 |