Skip to content

Commit 208822f

Browse files
committed
wip - fix tests
1 parent 15ff291 commit 208822f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/Electron/ElectronServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function configurePackage(Package $package): void
2121
{
2222
$package
2323
->name('nativephp-electron')
24-
->hasConfigFile('nativephp')
2524
->hasCommands([
2625
InstallCommand::class,
2726
DevelopCommand::class,
@@ -38,4 +37,9 @@ public function packageRegistered(): void
3837
return new UpdaterManager($app);
3938
});
4039
}
40+
41+
protected function getPackageBaseDir(): string
42+
{
43+
return dirname(parent::getPackageBaseDir());
44+
}
4145
}

src/Laravel/NativeServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434

3535
class NativeServiceProvider extends PackageServiceProvider
3636
{
37-
protected function getPackageBaseDir(): string
38-
{
39-
return dirname(parent::getPackageBaseDir());
40-
}
41-
4237
public function configurePackage(Package $package): void
4338
{
4439

@@ -249,4 +244,9 @@ protected function fireUpQueueWorkers(): void
249244
$this->app->make(QueueWorkerContract::class)->up($queueConfig);
250245
}
251246
}
247+
248+
protected function getPackageBaseDir(): string
249+
{
250+
return dirname(parent::getPackageBaseDir());
251+
}
252252
}

0 commit comments

Comments
 (0)