src/FileRepository.php
public function findRequirements($name)
    {
        $requirements = [];

        $module = $this->findOrFail($name);

        foreach ($module->getRequires() as $requirementName) {
            $requirements[] = $this->findByAlias($requirementName);
        }

        return $requirements;
    }
public function findRequirements($name)
    {
        $requirements = [];

        $module = $this->findOrFail($name);

        foreach ($module->getRequires() as $requirementName) {
            $requirements[] = $this->findByAlias($requirementName);
        }

        return $requirements;
    }
public function findRequirements ( $ name ) { $ requirements = [ ] ; $ module = $ this -> findOrFail ( $ name ) ; foreach ( $ module -> getRequires ( ) as $ requirementName ) { $ requirements [ ] = $ this -> findByAlias ( $ requirementName ) ; } return $ requirements ; }
Find all modules that are required by a module. If the module cannot be found, throw an exception.

@param $name
@return array
@throws ModuleNotFoundException
Find all modules that are required by a module . If the module cannot be found throw an exception .