1 | <?php |
||
28 | class ConfigCommandHandler |
||
29 | { |
||
30 | /** |
||
31 | * @var RootPackageFileManager |
||
32 | */ |
||
33 | private $manager; |
||
34 | |||
35 | /** |
||
36 | * Creates the handler. |
||
37 | * |
||
38 | * @param RootPackageFileManager $manager The root package file manager. |
||
39 | */ |
||
40 | public function __construct(RootPackageFileManager $manager) |
||
44 | |||
45 | /** |
||
46 | * Handles the "config" command. |
||
47 | * |
||
48 | * @param Args $args The console arguments. |
||
49 | * @param IO $io The I/O. |
||
50 | * |
||
51 | * @return int The status code. |
||
52 | */ |
||
53 | public function handleList(Args $args, IO $io) |
||
76 | |||
77 | /** |
||
78 | * Handles the "config <key>" command. |
||
79 | * |
||
80 | * @param Args $args The console arguments. |
||
81 | * @param IO $io The I/O. |
||
82 | * |
||
83 | * @return int The status code. |
||
84 | */ |
||
85 | public function handleShow(Args $args, IO $io) |
||
94 | |||
95 | /** |
||
96 | * Handles the "config <key> <value>" command. |
||
97 | * |
||
98 | * @param Args $args The console arguments. |
||
99 | * |
||
100 | * @return int The status code. |
||
101 | */ |
||
102 | public function handleSet(Args $args) |
||
110 | |||
111 | /** |
||
112 | * Handles the "config -r <key>" command. |
||
113 | * |
||
114 | * @param Args $args The console arguments. |
||
115 | * |
||
116 | * @return int The status code. |
||
117 | */ |
||
118 | public function handleReset(Args $args) |
||
124 | } |
||
125 |