1 | <?php |
||
17 | class UseCommand extends Command |
||
18 | { |
||
19 | /** |
||
20 | * @var Client |
||
21 | */ |
||
22 | private $packagist; |
||
23 | |||
24 | /** |
||
25 | * @var Template |
||
26 | */ |
||
27 | private $template; |
||
28 | |||
29 | /** |
||
30 | * @var Prompts |
||
31 | */ |
||
32 | private $prompts; |
||
33 | |||
34 | /** |
||
35 | * @param Template $template |
||
36 | * @param Prompts $prompts |
||
37 | * @param Client $packagist |
||
38 | */ |
||
39 | 1 | public function __construct(Template $template, Prompts $prompts, Client $packagist) |
|
40 | { |
||
41 | 1 | parent::__construct(); |
|
42 | |||
43 | 1 | $this->template = $template; |
|
44 | 1 | $this->prompts = $prompts; |
|
45 | 1 | $this->packagist = $packagist; |
|
46 | 1 | } |
|
47 | |||
48 | /** |
||
49 | * @return Client |
||
50 | */ |
||
51 | 1 | public function getPackagist() |
|
52 | { |
||
53 | 1 | return $this->packagist; |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return Template |
||
58 | */ |
||
59 | 1 | public function getTemplate() |
|
63 | |||
64 | /** |
||
65 | * @return Prompts |
||
66 | */ |
||
67 | 1 | public function getPrompts() |
|
71 | |||
72 | 1 | protected function configure() |
|
73 | { |
||
83 | |||
84 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
116 | |||
117 | /** |
||
118 | * @param string $packageName |
||
119 | */ |
||
120 | 1 | public function getPackageZipUrl($packageName) |
|
127 | } |
||
128 |