Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / robo / src / Task / Composer / Update.php
1 <?php
2 namespace Robo\Task\Composer;
3
4 /**
5  * Composer Update
6  *
7  * ``` php
8  * <?php
9  * // simple execution
10  * $this->taskComposerUpdate()->run();
11  *
12  * // prefer dist with custom path
13  * $this->taskComposerUpdate('path/to/my/composer.phar')
14  *      ->preferDist()
15  *      ->run();
16  *
17  * // optimize autoloader with custom path
18  * $this->taskComposerUpdate('path/to/my/composer.phar')
19  *      ->optimizeAutoloader()
20  *      ->run();
21  * ?>
22  * ```
23  */
24 class Update extends Base
25 {
26     /**
27      * {@inheritdoc}
28      */
29     protected $action = 'update';
30
31     /**
32      * {@inheritdoc}
33      */
34     public function run()
35     {
36         $command = $this->getCommand();
37         $this->printTaskInfo('Updating Packages: {command}', ['command' => $command]);
38         return $this->executeCommand($command);
39     }
40 }