From 9820dfdb5790dd83261768312604d7a6317ce709 Mon Sep 17 00:00:00 2001 From: pablo-bossi Date: Wed, 13 May 2020 18:52:50 -0300 Subject: [PATCH 1/3] Laravel 6 support --- composer.json | 6 +++--- src/Command/stubs/service.stub | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 53ad668..92cbb12 100644 --- a/composer.json +++ b/composer.json @@ -3,11 +3,11 @@ "description": "Package to fast generate Resources in Larapi distribution. Very small, very simple but works.", "require": { "php": "^7.0", - "laravel/framework": "~5.6" + "laravel/framework": "~6.18" }, "require-dev": { - "phpunit/phpunit": "~6.0", - "mockery/mockery": "0.9.*" + "phpunit/phpunit": "~8.0", + "mockery/mockery": "1.3.*" }, "autoload": { "psr-4": { diff --git a/src/Command/stubs/service.stub b/src/Command/stubs/service.stub index 22b119f..6b862bc 100644 --- a/src/Command/stubs/service.stub +++ b/src/Command/stubs/service.stub @@ -49,7 +49,7 @@ class DummyClass { $dummyname = $this->dummynameRepository->create($data); - $this->dispatcher->fire(new DummyModelWasCreated($dummyname)); + $this->dispatcher->dispatch(new DummyModelWasCreated($dummyname)); return $dummyname; } @@ -60,7 +60,7 @@ class DummyClass $this->dummynameRepository->update($dummyname, $data); - $this->dispatcher->fire(new DummyModelWasUpdated($dummyname)); + $this->dispatcher->dispatch(new DummyModelWasUpdated($dummyname)); return $dummyname; } @@ -71,7 +71,7 @@ class DummyClass $this->dummynameRepository->delete($dummynameId); - $this->dispatcher->fire(new DummyModelWasDeleted($dummyname)); + $this->dispatcher->dispatch(new DummyModelWasDeleted($dummyname)); } private function getRequestedDummyModel($dummynameId) From 181389ce9bc22ab769232e7a67d34aa214ffdc64 Mon Sep 17 00:00:00 2001 From: Pablo Bossi Date: Tue, 14 Jul 2020 13:01:51 -0300 Subject: [PATCH 2/3] Add support for laravel 7 --- composer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 92cbb12..596d701 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,13 @@ { "name": "versoo/larapi-fast", "description": "Package to fast generate Resources in Larapi distribution. Very small, very simple but works.", + "version":"1.0.0", "require": { "php": "^7.0", - "laravel/framework": "~6.18" + "laravel/framework": "~6.18||^7.0" }, "require-dev": { - "phpunit/phpunit": "~8.0", + "phpunit/phpunit": "^8.5", "mockery/mockery": "1.3.*" }, "autoload": { From 18e9880828bdf117489dcc2bcffba1753950934d Mon Sep 17 00:00:00 2001 From: Pablo Bossi Date: Wed, 15 Jul 2020 17:09:46 -0300 Subject: [PATCH 3/3] Version change to skip cache issues --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 596d701..9ec6f03 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "versoo/larapi-fast", "description": "Package to fast generate Resources in Larapi distribution. Very small, very simple but works.", - "version":"1.0.0", + "version":"1.0.1", "require": { "php": "^7.0", "laravel/framework": "~6.18||^7.0"