src/Common/ProcessExecutor.php 1 location
|
@@ 32-42 (lines=11) @@
|
| 29 |
|
* |
| 30 |
|
* @return static |
| 31 |
|
*/ |
| 32 |
|
public static function create($container, $process) |
| 33 |
|
{ |
| 34 |
|
$processExecutor = new self($process); |
| 35 |
|
|
| 36 |
|
$processExecutor->setLogger($container->get('logger')); |
| 37 |
|
$processExecutor->setProgressIndicator($container->get('progressIndicator')); |
| 38 |
|
$processExecutor->setConfig($container->get('config')); |
| 39 |
|
$processExecutor->setOutputAdapter($container->get('outputAdapter')); |
| 40 |
|
|
| 41 |
|
return $processExecutor; |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
|
* {@inheritdoc} |
src/Collection/CollectionBuilder.php 1 location
|
@@ 88-98 (lines=11) @@
|
| 85 |
|
* |
| 86 |
|
* @return static |
| 87 |
|
*/ |
| 88 |
|
public static function create($container, $commandFile) |
| 89 |
|
{ |
| 90 |
|
$builder = new self($commandFile); |
| 91 |
|
|
| 92 |
|
$builder->setLogger($container->get('logger')); |
| 93 |
|
$builder->setProgressIndicator($container->get('progressIndicator')); |
| 94 |
|
$builder->setConfig($container->get('config')); |
| 95 |
|
$builder->setOutputAdapter($container->get('outputAdapter')); |
| 96 |
|
|
| 97 |
|
return $builder; |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
/** |
| 101 |
|
* @param bool $simulated |