Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Oct 6, 2023
1 parent 268a8ba commit 6735778
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WorkbenchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ public function register(): void
return new RecipeManager($app);
});

$this->callAfterResolving(PresetManager::class, static function ($manager, $app) {
$this->callAfterResolving(PresetManager::class, static function ($manager) {
$manager->extend('workbench', static function ($app) {
/** @var \Illuminate\Foundation\Application $app */
return new GeneratorPreset($app);
});

Expand All @@ -36,7 +37,7 @@ public function register(): void
*/
public function boot(): void
{
$this->loadRoutesFrom(realpath(__DIR__.'/../routes/workbench.php'));
$this->loadRoutesFrom((string) realpath(__DIR__.'/../routes/workbench.php'));
$this->loadViewsFrom(Workbench::path('resources/views'), 'workbench');

$this->app->make(HttpKernel::class)->pushMiddleware(Http\Middleware\CatchDefaultRoute::class);
Expand Down

0 comments on commit 6735778

Please sign in to comment.