1 | <?php |
||
30 | abstract class Command extends BaseCommand |
||
|
|||
31 | { |
||
32 | /** |
||
33 | * @var Filesystem |
||
34 | */ |
||
35 | protected $filesystem; |
||
36 | |||
37 | /** |
||
38 | * @var Config |
||
39 | */ |
||
40 | protected $config; |
||
41 | |||
42 | /** |
||
43 | * @var Client |
||
44 | */ |
||
45 | protected $githubClient; |
||
46 | |||
47 | /** |
||
48 | * @var BowerphpConsoleOutput |
||
49 | */ |
||
50 | protected $consoleOutput; |
||
51 | |||
52 | /** |
||
53 | * Debug HTTP interactions |
||
54 | * |
||
55 | * @param Client $client |
||
56 | * @param OutputInterface $output |
||
57 | */ |
||
58 | protected function logHttp(Client $client, OutputInterface $output) |
||
72 | |||
73 | /** |
||
74 | * Set oauth token (to increase API limit to 5000 per hour, instead of default 60) |
||
75 | * |
||
76 | * @param Client $client |
||
77 | */ |
||
78 | protected function setToken(Client $client) |
||
85 | |||
86 | /** |
||
87 | * @param OutputInterface $output |
||
88 | */ |
||
89 | protected function setGithubToken(OutputInterface $output) |
||
97 | |||
98 | /** |
||
99 | * @param OutputInterface $output |
||
100 | * @return Bowerphp |
||
101 | */ |
||
102 | protected function getBowerphp(OutputInterface $output) |
||
108 | } |
||
109 |