|
@@ -125,7 +125,13 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
|
{
|
|
{
|
|
parent::initialize();
|
|
parent::initialize();
|
|
|
|
|
|
- foreach ($this->getUrlMatches() as $url) {
|
|
|
|
|
|
+ $urlMatches = $this->getUrlMatches();
|
|
|
|
+
|
|
|
|
+ if (empty($urlMatches)) {
|
|
|
|
+ throw new \RuntimeException('The `url` supplied for the path repository does not exist');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ foreach ($urlMatches as $url) {
|
|
$path = realpath($url) . DIRECTORY_SEPARATOR;
|
|
$path = realpath($url) . DIRECTORY_SEPARATOR;
|
|
$composerFilePath = $path.'composer.json';
|
|
$composerFilePath = $path.'composer.json';
|
|
|
|
|