| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Composer extends Executable |
||
| 6 | { |
||
| 7 | /** @var string The binary executable */ |
||
| 8 | protected $binary = 'composer'; |
||
| 9 | |||
| 10 | public function createProject($project, $using) |
||
| 11 | { |
||
| 12 | $this->runCommand(sprintf('create-project %s %s', $using, $project)); |
||
| 13 | |||
| 14 | return $this; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function install() |
||
| 18 | { |
||
| 19 | $this->runCommand('install --prefer-dist --optimize-autoloader --no-suggest'); |
||
| 20 | |||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function update() |
||
| 29 | } |
||
| 30 | } |
||
| 31 |