fix github workflow

This commit is contained in:
Khoubza Younes
2020-12-06 22:40:32 +01:00
parent f95ebf500a
commit cda24d13c9
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ use Illuminate\Container\Container;
use Illuminate\Support\ServiceProvider;
use Flasher\Pnotify\Laravel\ServiceProvider\ServiceProviderManager;
class FlasherPnotifyServiceProvider extends ServiceProvider
final class FlasherPnotifyServiceProvider extends ServiceProvider
{
public function boot()
{
+1 -1
View File
@@ -33,7 +33,7 @@ class Laravel implements ServiceProviderInterface
$provider->mergeConfigFrom($source, 'flasher_pnotify');
}
public function registerNotifyPnotifyServices()
public function registerServices()
{
$this->app->singleton('flasher.factory.pnotify', function (Container $app) {
return new PnotifyFactory($app['flasher.event_dispatcher']);
@@ -10,7 +10,7 @@ interface ServiceProviderInterface
public function publishConfig(FlasherPnotifyServiceProvider $provider);
public function registerNotifyPnotifyServices();
public function registerServices();
public function mergeConfigFromPnotify();
}
+1 -1
View File
@@ -36,7 +36,7 @@ final class ServiceProviderManager
public function register()
{
$provider = $this->resolveServiceProvider();
$provider->registerNotifyPnotifyServices();
$provider->registerServices();
}
/**
+3 -3
View File
@@ -32,8 +32,8 @@
"php-flasher/flasher-pnotify": "dev-main"
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.0|^6.0|^7.0|^8.0|^9.0",
"orchestra/testbench": "^2.0|^3.0|^4.0|^5.0|^6.0"
"orchestra/testbench": "^2.0|^3.0|^4.0|^5.0|^6.0",
"phpunit/phpunit": "6.*"
},
"autoload": {
"psr-4": {
@@ -51,7 +51,7 @@
"extra": {
"laravel": {
"providers": [
"FlasherPnotifyServiceProvider"
"Flasher\\Pnotify\\Laravel\\FlasherPnotifyServiceProvider"
]
}
},