Skip to content

Commit

Permalink
allow ignoring all
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 2, 2017
1 parent c77ce19 commit 6474651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Foundation/PackageManifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public function build()
$packages = json_decode($this->files->get($path), true);
}

$ignore = $this->packagesToIgnore();
$ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());

$this->write(collect($packages)->mapWithKeys(function ($package) {
return [$this->format($package['name']) => $package['extra']['laravel'] ?? []];
})->reject(function ($configuration, $package) use ($ignore) {
return in_array($package, $ignore);
})->reject(function ($configuration, $package) use ($ignore, $ignoreAll) {
return $ignoreAll || in_array($package, $ignore);
})->filter()->all());
}

Expand Down

0 comments on commit 6474651

Please sign in to comment.