2 namespace Robo\Task\Composer;
5 * Composer Dump Autoload
10 * $this->taskComposerDumpAutoload()->run();
12 * // dump auto loader with custom path
13 * $this->taskComposerDumpAutoload('path/to/my/composer.phar')
17 * // optimize autoloader dump with custom path
18 * $this->taskComposerDumpAutoload('path/to/my/composer.phar')
22 * // optimize autoloader dump with custom path and no dev
23 * $this->taskComposerDumpAutoload('path/to/my/composer.phar')
30 class DumpAutoload extends Base
35 protected $action = 'dump-autoload';
45 public function optimize($optimize = true)
48 $this->option("--optimize");
58 $command = $this->getCommand();
59 $this->printTaskInfo('Dumping Autoloader: {command}', ['command' => $command]);
60 return $this->executeCommand($command);