src/Database/Migration/Manager.php
private function getSeedDependenciesInstances(AbstractSeed $seed)
    {
        $dependenciesInstances = [];
        $dependencies = $seed->getDependencies();
        if (!empty($dependencies)) {
            foreach ($dependencies as $dependency) {
                foreach ($this->seeds as $seed) {
                    if (\get_class($seed) === $dependency) {
                        $dependenciesInstances[$dependency] = $seed;
                    }
                }
            }
        }

        return $dependenciesInstances;
    }
private function getSeedDependenciesInstances(AbstractSeed $seed)
    {
        $dependenciesInstances = [];
        $dependencies = $seed->getDependencies();
        if (!empty($dependencies)) {
            foreach ($dependencies as $dependency) {
                foreach ($this->seeds as $seed) {
                    if (\get_class($seed) === $dependency) {
                        $dependenciesInstances[$dependency] = $seed;
                    }
                }
            }
        }

        return $dependenciesInstances;
    }
private function getSeedDependenciesInstances ( AbstractSeed $ seed ) { $ dependenciesInstances = [ ] ; $ dependencies = $ seed -> getDependencies ( ) ; if ( ! empty ( $ dependencies ) ) { foreach ( $ dependencies as $ dependency ) { foreach ( $ this -> seeds as $ seed ) { if ( \ get_class ( $ seed ) === $ dependency ) { $ dependenciesInstances [ $ dependency ] = $ seed ; } } } } return $ dependenciesInstances ; }
Get seed dependencies instances from seed dependency array

@param AbstractSeed $seed Seed

@return AbstractSeed[]
Get seed dependencies instances from seed dependency array