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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -38,6 +38,11 @@
|
||||
"/Tests/"
|
||||
]
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Flasher\\Prime\\Tests\\": "Tests/"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"sort-packages": true
|
||||
},
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Flasher\\Toastr\\Tests\\": "Tests/"
|
||||
"Flasher\\Toastr\\Prime\\Tests\\": "Tests/"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
Reference in New Issue
Block a user