|
@@ 141-145 (lines=5) @@
|
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
// asking for the name |
| 141 |
|
if ($askName || $force) { |
| 142 |
|
$name = $this->askQuestion(new Question('Package name (<vendor>/<name>)', $name)); |
| 143 |
|
$this->validateName($name); |
| 144 |
|
$input->setOption('name', $name); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
// asking for a description |
| 148 |
|
$desc = $this->getPackageDescription(); |
|
@@ 149-152 (lines=4) @@
|
| 146 |
|
|
| 147 |
|
// asking for a description |
| 148 |
|
$desc = $this->getPackageDescription(); |
| 149 |
|
if ($desc === null || $force) { |
| 150 |
|
$desc = $this->askQuestion(new Question('Description', $desc)); |
| 151 |
|
$input->setOption('description', $desc); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
// asking for the author |
| 155 |
|
if ($this->package->getAuthors()->isEmpty() || $force) { |
|
@@ 189-192 (lines=4) @@
|
| 186 |
|
|
| 187 |
|
// asking for the license |
| 188 |
|
$license = $this->getPackageLicense(); |
| 189 |
|
if ($license === null || $force) { |
| 190 |
|
$license = $this->askQuestion(new Question('License', $license)); |
| 191 |
|
$input->setOption('license', $license); |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
// asking for namespace |
| 195 |
|
var_dump($this->hasAutoload()); |
|
@@ 215-218 (lines=4) @@
|
| 212 |
|
|
| 213 |
|
// ask for the title |
| 214 |
|
$title = $this->getPackageTitle(); |
| 215 |
|
if ($title === null || $force) { |
| 216 |
|
$title = $this->askQuestion(new Question('Title', $title)); |
| 217 |
|
$input->setOption('title', $title); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
// ask for the class |
| 221 |
|
$classname = $this->getPackageClass(); |