Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
PackageDiscoverCommand | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
handle | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Hyde\Console\Commands; |
6 | |
7 | use Hyde\Hyde; |
8 | use Illuminate\Foundation\Console\PackageDiscoverCommand as BaseCommand; |
9 | use Illuminate\Foundation\PackageManifest; |
10 | |
11 | /** |
12 | * Extended package discovery command to use the custom manifest path. |
13 | */ |
14 | class PackageDiscoverCommand extends BaseCommand |
15 | { |
16 | /** @var true */ |
17 | protected $hidden = true; |
18 | |
19 | public function handle(PackageManifest $manifest): void |
20 | { |
21 | $manifest->manifestPath = Hyde::path('app/storage/framework/cache/packages.php'); |
22 | parent::handle($manifest); |
23 | } |
24 | } |