CollectorInterface.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Deploy\Console\Command\App\SensitiveConfigSet;
  7. use Magento\Framework\Exception\LocalizedException;
  8. use Symfony\Component\Console\Input\InputInterface;
  9. use Symfony\Component\Console\Output\OutputInterface;
  10. /**
  11. * Interface for collection values from user input
  12. */
  13. interface CollectorInterface
  14. {
  15. /**
  16. * Collects values from user input and return result as array
  17. *
  18. * @param InputInterface $input
  19. * @param OutputInterface $output
  20. * @param array $configPaths list of available config paths
  21. * @return array for example
  22. *
  23. * ```php
  24. * [
  25. * 'some/configuration/path1' => 'someValue1',
  26. * 'some/configuration/path2' => 'someValue2',
  27. * 'some/configuration/path3' => 'someValue3',
  28. * ]
  29. * ```
  30. * @throws LocalizedException
  31. */
  32. public function getValues(InputInterface $input, OutputInterface $output, array $configPaths);
  33. }