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

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

        $this->mover->movePackage($package);
    }
public function movePackage ( $ package ) { if ( ! empty ( $ package -> dependencies ) ) { foreach ( $ package -> dependencies as $ dependency ) { $ this -> movePackage ( $ dependency ) ; } } $ this -> mover -> movePackage ( $ package ) ; }
Move all the packages over, one by one, starting on the deepest level of dependencies.
Move all the packages over one by one starting on the deepest level of dependencies .