|
@@ 147-152 (lines=6) @@
|
| 144 |
|
{ |
| 145 |
|
$class = $this->input->getArgument('class'); |
| 146 |
|
|
| 147 |
|
if (null === $class) { |
| 148 |
|
$helper = $this->getHelper('question'); |
| 149 |
|
$question = new Question('Enter full qualified class name, or path to file with class, for which you want to generate builder class: ', null); |
| 150 |
|
|
| 151 |
|
$class = $helper->ask($this->input, $this->output, $question); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
$fileMetadata = MetadataLoader::create()->load($class); |
| 155 |
|
$classMetadata = null; |
|
@@ 247-252 (lines=6) @@
|
| 244 |
|
{ |
| 245 |
|
$location = $this->input->getArgument('location'); |
| 246 |
|
|
| 247 |
|
if (null === $location) { |
| 248 |
|
$helper = $this->getHelper('question'); |
| 249 |
|
$question = new Question('Enter path where you want to store a builder class: ', null); |
| 250 |
|
|
| 251 |
|
$location = $helper->ask($this->input, $this->output, $question); |
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
$location = str_replace('\\', '/', ltrim($location, '/')); |
| 255 |
|
|