src/DatabaseRepository.php 1 location
|
@@ 229-240 (lines=12) @@
|
226 |
|
* @return array |
227 |
|
* @throws ModuleNotFoundException |
228 |
|
*/ |
229 |
|
public function findRequirements($name): array |
230 |
|
{ |
231 |
|
$requirements = []; |
232 |
|
|
233 |
|
$module = $this->findOrFail($name); |
234 |
|
|
235 |
|
foreach ($module->getRequires() as $requirementName) { |
236 |
|
$requirements[] = $this->findByAlias($requirementName); |
237 |
|
} |
238 |
|
|
239 |
|
return $requirements; |
240 |
|
} |
241 |
|
|
242 |
|
/** |
243 |
|
* Find a specific module. If there return that, otherwise throw exception. |
src/FileRepository.php 1 location
|
@@ 366-377 (lines=12) @@
|
363 |
|
/** |
364 |
|
* @inheritDoc |
365 |
|
*/ |
366 |
|
public function findRequirements($name): array |
367 |
|
{ |
368 |
|
$requirements = []; |
369 |
|
|
370 |
|
$module = $this->findOrFail($name); |
371 |
|
|
372 |
|
foreach ($module->getRequires() as $requirementName) { |
373 |
|
$requirements[] = $this->findByAlias($requirementName); |
374 |
|
} |
375 |
|
|
376 |
|
return $requirements; |
377 |
|
} |
378 |
|
|
379 |
|
/** |
380 |
|
* Find a specific module, if there return that, otherwise throw exception. |