diff --git a/src/Console/Commands/Compose.php b/src/Console/Commands/Compose.php index 38369c65..10b6ec25 100644 --- a/src/Console/Commands/Compose.php +++ b/src/Console/Commands/Compose.php @@ -47,7 +47,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $this->mover = new Mover($workingDir, $config); $this->replacer = new Replacer($workingDir, $config); - $require = empty($config->packages) ? array_keys(get_object_vars($composer->require)) : $config->packages; + $require = empty($config->packages) ? array_keys(get_object_vars($this->config->require)) : $config->packages; $packages = $this->findPackages($require);