|
@@ 396-402 (lines=7) @@
|
| 393 |
|
$class->addUseStatement('keeko\\core\\package\\AbstractApplication'); |
| 394 |
|
|
| 395 |
|
// method: run(Request $request, $path) |
| 396 |
|
if (!$class->hasMethod('run')) { |
| 397 |
|
$class->setMethod(PhpMethod::create('run') |
| 398 |
|
->addParameter(PhpParameter::create('request')->setType('Request')) |
| 399 |
|
->addParameter(PhpParameter::create('path')->setType('string')) |
| 400 |
|
); |
| 401 |
|
$class->addUseStatement('Symfony\\Component\\HttpFoundation\\Request'); |
| 402 |
|
} |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
private function handleModuleClass(PhpClass $class) { |
|
@@ 421-426 (lines=6) @@
|
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
// method: update($from, $to) |
| 421 |
|
if (!$class->hasMethod('update')) { |
| 422 |
|
$class->setMethod(PhpMethod::create('update') |
| 423 |
|
->addParameter(PhpParameter::create('from')->setType('mixed')) |
| 424 |
|
->addParameter(PhpParameter::create('to')->setType('mixed')) |
| 425 |
|
); |
| 426 |
|
} |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
private function getPackageKeeko($type) { |