src/Console/Commands/Compose.php
public function replacePackage($package)
    {
        if (! empty($package->dependencies)) {
            foreach ($package->dependencies as $dependency) {
                $this->replacePackage($dependency);
            }
        }

        $this->replacer->replacePackage($package);
    }
public function replacePackage($package)
    {
        if (! empty($package->dependencies)) {
            foreach ($package->dependencies as $dependency) {
                $this->replacePackage($dependency);
            }
        }

        $this->replacer->replacePackage($package);
    }
public function replacePackage ( $ package ) { if ( ! empty ( $ package -> dependencies ) ) { foreach ( $ package -> dependencies as $ dependency ) { $ this -> replacePackage ( $ dependency ) ; } } $ this -> replacer -> replacePackage ( $ package ) ; }
Replace contents of all the packages, one by one, starting on the deepest level of dependencies.
Replace contents of all the packages one by one starting on the deepest level of dependencies .