public function composerInstall($opts = ['prod' => false])
    {
        $prod = isset($opts['prod']) && $opts['prod'] ? true : false;
        $paths = $this->getPaths();
        $this->stopOnFail(true);
        $this->info('Installing Composer dependencies');
        $command = $this->taskExec('composer')->dir($paths['root']);
        $command
            ->arg('install')
            ->option('prefer-dist');
        if ($prod) {
            $command->option('no-dev');
            $command->option('optimize-autoloader');
        }
        $command
            ->printOutput(true)
            ->run();
        $this->info('Composer dependencies installed');
    }