1 | <?php |
||
27 | class AskForWebRoot implements TaskInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var Command |
||
31 | */ |
||
32 | private $command; |
||
33 | |||
34 | /** |
||
35 | * Creates an Ask For Web Root task |
||
36 | * |
||
37 | * @param Command $command |
||
38 | */ |
||
39 | public function __construct(Command $command) |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Executes the current task. |
||
47 | * |
||
48 | * This method can return the task execution result. For example if this |
||
49 | * task is asking for user input it should return its input. |
||
50 | * |
||
51 | * @param InputInterface $input An InputInterface instance |
||
52 | * @param OutputInterface $output An OutputInterface instance |
||
53 | * |
||
54 | * @return mixed|false |
||
55 | */ |
||
56 | public function execute(InputInterface $input, OutputInterface $output) |
||
69 | |||
70 | /** |
||
71 | * Checks if the document root has an index.php file. If so overwrite? |
||
72 | * |
||
73 | * @param string $docRoot |
||
74 | * @param InputInterface $input |
||
75 | * @param OutputInterface $output |
||
76 | * |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function check($docRoot, InputInterface $input, OutputInterface $output) |
||
98 | } |