diff --git a/src/Application.php b/src/Application.php new file mode 100644 index 00000000..23ce8dab --- /dev/null +++ b/src/Application.php @@ -0,0 +1,26 @@ +app->singleton(PackageManifest::class, function () { + return new PackageManifest( + new Filesystem, $this->basePath(), $this->basePath('storage/framework/cache/packages.php') + ); + }); + } +} diff --git a/src/Commands/HydePackageDiscoverCommand.php b/src/Commands/HydePackageDiscoverCommand.php new file mode 100644 index 00000000..50892cf6 --- /dev/null +++ b/src/Commands/HydePackageDiscoverCommand.php @@ -0,0 +1,18 @@ +manifestPath = Hyde::path('storage/framework/cache/packages.php'); + parent::handle($manifest); + } +} diff --git a/src/HydeServiceProvider.php b/src/HydeServiceProvider.php index a8a5d112..4feff093 100644 --- a/src/HydeServiceProvider.php +++ b/src/HydeServiceProvider.php @@ -77,6 +77,8 @@ function () { Commands\HydeInstallCommand::class, Commands\HydeDebugCommand::class, Commands\HydeServeCommand::class, + + Commands\HydePackageDiscoverCommand::class, ]); }