Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
],
"require-dev": {
"mockery/mockery": "^1.6",
"phpunit/phpunit": "^12.1.5",
"doppar/framework": "3.*"
"phpunit/phpunit": "^13.3",
"doppar/framework": "4.*"
},
"autoload": {
"psr-4": {
Expand All @@ -32,12 +32,9 @@
}
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"doppar": {
"providers": [
"Doppar\\Notifier\\NotifierServiceProvider"
"Doppar\\Notifier\\NotifierLauncher"
]
}
},
Expand All @@ -46,6 +43,7 @@
},
"minimum-stability": "dev",
"require": {
"doppar/queue": "1.*"
}
}
"doppar/queue": "4.*"
},
"prefer-stable": true
}
2 changes: 1 addition & 1 deletion src/Console/Commands/MakeNotificationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function handle(): int

$namespace = 'App\\Notifications' . (count($parts) > 0 ? '\\' . implode('\\', $parts) : '');
$fileName = count($parts) > 0 ? implode('/', $parts) . '/' . $className : $className;
$filePath = $this->generatedFilePath('app/Notifications', $fileName);
$filePath = $this->generatedFilePath('src/Notifications', $fileName);

// Check if Notification already exists
if (file_exists($filePath)) {
Expand Down
10 changes: 5 additions & 5 deletions src/NotifierServiceProvider.php → src/NotifierLauncher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Doppar\Notifier;

use Phaseolies\Providers\GhostableProvider;
use Phaseolies\Providers\ServiceProvider;
use Phaseolies\Launchers\GhostableLauncher;
use Phaseolies\Launchers\ServiceLauncher;
use Doppar\Notifier\NotificationManager;
use Doppar\Notifier\Console\Commands\MakeNotificationCommand;

class NotifierServiceProvider extends ServiceProvider implements GhostableProvider
class NotifierLauncher extends ServiceLauncher implements GhostableLauncher
{
/**
* Register any application services.
Expand All @@ -26,12 +26,12 @@ public function register(): void
*
* @return void
*/
public function boot(): void
public function launch(): void
{
$this->loadMigrations(__DIR__ . '/database/migrations');

$this->publishes([
__DIR__ . '/database/migrations' => database_path('migrations'),
__DIR__ . '/database/migrations' => schema_path('migrations'),
], 'migrations');

$this->commands([
Expand Down
Loading