Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
PackageDiscoverCommand
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 handle
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Hyde\Console\Commands;
6
7use Hyde\Hyde;
8use Illuminate\Foundation\Console\PackageDiscoverCommand as BaseCommand;
9use Illuminate\Foundation\PackageManifest;
10
11/**
12 * Extended package discovery command to use the custom manifest path.
13 */
14class 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}