| @@ 104-117 (lines=14) @@ | ||
| 101 | * @throws \Doctrine\ORM\NoResultException |
|
| 102 | * @throws \Doctrine\ORM\NonUniqueResultException |
|
| 103 | */ |
|
| 104 | public function execRequire($packageName, $output = null) |
|
| 105 | { |
|
| 106 | $packageName = explode(' ', trim($packageName)); |
|
| 107 | ||
| 108 | return $this->runCommand([ |
|
| 109 | 'command' => 'require', |
|
| 110 | 'packages' => $packageName, |
|
| 111 | '--no-interaction' => true, |
|
| 112 | '--profile' => true, |
|
| 113 | '--prefer-dist' => true, |
|
| 114 | '--update-with-dependencies' => true, |
|
| 115 | '--no-scripts' => true, |
|
| 116 | ], $output); |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * Run remove command |
|
| @@ 131-145 (lines=15) @@ | ||
| 128 | * @throws \Doctrine\ORM\NoResultException |
|
| 129 | * @throws \Doctrine\ORM\NonUniqueResultException |
|
| 130 | */ |
|
| 131 | public function execRemove($packageName, $output = null) |
|
| 132 | { |
|
| 133 | $this->dropTableToExtra($packageName); |
|
| 134 | ||
| 135 | $packageName = explode(' ', trim($packageName)); |
|
| 136 | ||
| 137 | return $this->runCommand([ |
|
| 138 | 'command' => 'remove', |
|
| 139 | 'packages' => $packageName, |
|
| 140 | '--ignore-platform-reqs' => true, |
|
| 141 | '--no-interaction' => true, |
|
| 142 | '--profile' => true, |
|
| 143 | '--no-scripts' => true, |
|
| 144 | ], $output); |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Run update command |
|