fix github workflow

This commit is contained in:
Khoubza Younes
2020-12-06 22:40:32 +01:00
parent 54b82469a6
commit 46efd611cb
12 changed files with 20 additions and 15 deletions
@@ -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
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"
]
}
},
+2 -2
View File
@@ -33,7 +33,7 @@
},
"autoload": {
"psr-4": {
"Flasher\\Pnotify\\": ""
"Flasher\\Pnotify\\Prime\\": ""
},
"exclude-from-classmap": [
"/Tests/"
@@ -41,7 +41,7 @@
},
"autoload-dev": {
"psr-4": {
"Flasher\\Pnotify\\Tests\\": "Tests/"
"Flasher\\Pnotify\\Prime\\Tests\\": "Tests/"
}
},
"config": {
+5
View File
@@ -38,6 +38,11 @@
"/Tests/"
]
},
"autoload-dev": {
"psr-4": {
"Flasher\\Prime\\Tests\\": "Tests/"
}
},
"config": {
"sort-packages": true
},
+2 -2
View File
@@ -38,7 +38,7 @@
},
"autoload": {
"psr-4": {
"Flasher\\Laravel\\SweetAlert\\": ""
"Flasher\\SweetAlert\\Laravel\\": ""
},
"exclude-from-classmap": [
"/Tests/"
@@ -46,7 +46,7 @@
},
"autoload-dev": {
"psr-4": {
"Flasher\\Laravel\\SweetAlert\\Tests\\": "Tests/"
"Flasher\\SweetAlert\\Laravel\\Tests\\": "Tests/"
}
},
"extra": {
+1 -1
View File
@@ -12,7 +12,7 @@ use Flasher\Prime\Renderer\RendererInterface;
final class SweetAlertRenderer implements RendererInterface, HasScriptsInterface, HasStylesInterface, HasOptionsInterface
{
/**
* @var \Flasher\Prime\Config\ConfigInterface
* @var ConfigInterface
*/
private $config;
+1 -1
View File
@@ -40,7 +40,7 @@
},
"autoload-dev": {
"psr-4": {
"Flasher\\SweetAlert\\Tests\\": "Tests/"
"Flasher\\SweetAlert\\Prime\\Tests\\": "Tests/"
}
},
"config": {
@@ -52,7 +52,7 @@ class Laravel implements ServiceProviderInterface
return $flasher;
});
$this->app->extend('flasher.renderer', function (RendererManager $manager, Container $app) {
$this->app->extend('flasher.renderer_manager', function (RendererManager $manager, Container $app) {
$manager->addDriver($app['flasher.renderer.toastr']);
return $manager;
+1 -1
View File
@@ -40,7 +40,7 @@
},
"autoload-dev": {
"psr-4": {
"Flasher\\Toastr\\Tests\\": "Tests/"
"Flasher\\Toastr\\Prime\\Tests\\": "Tests/"
}
},
"config": {