1 | <?php |
||
13 | class ConfigurationReader |
||
14 | { |
||
15 | /** |
||
16 | * @var \Symfony\Component\Console\Input\InputInterface |
||
17 | */ |
||
18 | protected $input; |
||
19 | |||
20 | /** |
||
21 | * @param InputInterface $input |
||
22 | */ |
||
23 | public function __construct(InputInterface $input) |
||
27 | |||
28 | /** |
||
29 | * Read configuration information from input |
||
30 | * |
||
31 | * @return Configuration |
||
32 | */ |
||
33 | public function read() |
||
54 | |||
55 | /** |
||
56 | * Static access to reader |
||
57 | * |
||
58 | * @param InputInterface $input |
||
59 | * @return Configuration |
||
60 | */ |
||
61 | public static function readInput(InputInterface $input) |
||
67 | |||
68 | /** |
||
69 | * Execute a callback if the input object has a value for the |
||
70 | * given option name. |
||
71 | * |
||
72 | * @param string $optionName |
||
73 | * @param callable $callable |
||
74 | */ |
||
75 | protected function callForOption($optionName, callable $callable) |
||
82 | |||
83 | private function readPaths() |
||
93 | } |
||
94 |