mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix github workflow
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ final class ServiceProviderManager
|
||||
public function register()
|
||||
{
|
||||
$provider = $this->resolveServiceProvider();
|
||||
$provider->registerNotifyPnotifyServices();
|
||||
$provider->registerServices();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+3
-3
@@ -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"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user