From f95ebf500a919492b8189c74727ca5dc7c32f9a7 Mon Sep 17 00:00:00 2001 From: Khoubza Younes Date: Sun, 6 Dec 2020 21:40:28 +0100 Subject: [PATCH] fix github workflow --- ServiceProvider/Providers/Laravel.php | 8 ++++---- composer.json | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ServiceProvider/Providers/Laravel.php b/ServiceProvider/Providers/Laravel.php index c00994a9..5dd7256b 100644 --- a/ServiceProvider/Providers/Laravel.php +++ b/ServiceProvider/Providers/Laravel.php @@ -2,9 +2,9 @@ namespace Flasher\Pnotify\Laravel\ServiceProvider\Providers; -use Flasher\PFlasher\Prime\PnotifyRenderer; use Flasher\Pnotify\Laravel\FlasherPnotifyServiceProvider; use Flasher\Pnotify\Prime\PnotifyFactory; +use Flasher\Pnotify\Prime\PnotifyRenderer; use Flasher\Prime\Flasher; use Flasher\Prime\Renderer\RendererManager; use Illuminate\Container\Container; @@ -43,8 +43,8 @@ class Laravel implements ServiceProviderInterface return new PnotifyRenderer($app['flasher.config']); }); - $this->app->alias('flasher.factory.pnotify', 'Flasher\PFlasher\Prime\TestsProducer\PnotifyProducer'); - $this->app->alias('flasher.renderer.pnotify', 'Flasher\PFlasher\Prime\Renderer\PnotifyRenderer'); + $this->app->alias('flasher.factory.pnotify', 'Flasher\Pnotify\Prime\PnotifyFactory'); + $this->app->alias('flasher.renderer.pnotify', 'Flasher\Pnotify\Prime\PnotifyRenderer'); $this->app->extend('flasher', function (Flasher $manager, Container $app) { $manager->addDriver($app['flasher.factory.pnotify']); @@ -52,7 +52,7 @@ class Laravel implements ServiceProviderInterface return $manager; }); - $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.pnotify']); return $manager; diff --git a/composer.json b/composer.json index 52b1ecb5..d3cd37b1 100644 --- a/composer.json +++ b/composer.json @@ -31,6 +31,10 @@ "php-flasher/flasher-laravel": "dev-main", "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" + }, "autoload": { "psr-4": { "Flasher\\Pnotify\\Laravel\\": ""