From 68039f6a5afc204666ea1e4804c233b5b923ab8a Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sat, 2 Dec 2017 10:26:25 -0600 Subject: [PATCH] add missing listener files --- .travis.yml | 2 +- Makefile | 2 -- app/Console/Kernel.php | 1 + composer.json | 11 ++++---- composer.lock | 2 +- modules/.gitignore | 3 +-- .../Sample/Listeners/TestEventListener.php | 16 ++++++++++++ .../Sample/Providers/EventServiceProvider.php | 25 +++++++++++++++++++ 8 files changed, 50 insertions(+), 12 deletions(-) create mode 100644 modules/Sample/Listeners/TestEventListener.php create mode 100644 modules/Sample/Providers/EventServiceProvider.php diff --git a/.travis.yml b/.travis.yml index 0d5be07d..02f013f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ before_install: before_script: - cp .env.travis .env - composer self-update - - composer update --no-interaction + - composer install --no-interaction script: - php artisan database:create --reset diff --git a/Makefile b/Makefile index de1b2e8a..4aa35720 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ all: build .PHONY: build build: @composer install --no-interaction - @php artisan optimize @php artisan config:cache @make db @@ -22,7 +21,6 @@ install: db .PHONY: clean clean: @php artisan cache:clear - @php artisan optimize @php artisan route:clear @php artisan config:clear diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 708bcbf8..bf08e69a 100755 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -36,5 +36,6 @@ class Kernel extends ConsoleKernel protected function commands() { require base_path('routes/console.php'); + $this->load(__DIR__ . '/Commands'); } } diff --git a/composer.json b/composer.json index cb3685f5..6bc361cb 100755 --- a/composer.json +++ b/composer.json @@ -43,12 +43,12 @@ "makinacorpus/php-bloom": "dev-master", "hashids/hashids": "2.0.*", "maatwebsite/excel": "2.1.*", - "phpunit/phpunit": "6.4.0", "scriptfusion/phpunit-immediate-exception-printer": "1.3.0", "nwidart/laravel-modules": "^2.6", "sebastiaanluca/laravel-helpers": "^1.0" }, "require-dev": { + "phpunit/phpunit": "6.4.0", "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "laravel/homestead": "v6.2.2", @@ -81,17 +81,16 @@ "php artisan key:generate" ], "post-install-cmd": [ - "Illuminate\\Foundation\\ComposerScripts::postInstall", - "php artisan optimize" + "Illuminate\\Foundation\\ComposerScripts::postInstall" ], "post-update-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postUpdate", "php artisan ide-helper:generate", - "php artisan ide-helper:meta", - "php artisan optimize" + "php artisan ide-helper:meta" ], "post-autoload-dump": [ - "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump" + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover" ] }, "config": { diff --git a/composer.lock b/composer.lock index b993e76b..1db4866e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "0cb626a4524ce3b7000623610d46d686", + "content-hash": "3e47acb2e2222b8dcae3c9c95100b4da", "packages": [ { "name": "anlutro/l4-settings", diff --git a/modules/.gitignore b/modules/.gitignore index f4205705..3e758b72 100644 --- a/modules/.gitignore +++ b/modules/.gitignore @@ -1,6 +1,5 @@ # Ignore everything so if we update via git, nothing is overwritten -* # But keep the sample and this file around !.gitignore -!Sample/* +!/Sample/ diff --git a/modules/Sample/Listeners/TestEventListener.php b/modules/Sample/Listeners/TestEventListener.php new file mode 100644 index 00000000..4725fd4b --- /dev/null +++ b/modules/Sample/Listeners/TestEventListener.php @@ -0,0 +1,16 @@ + [ + 'Modules\Sample\Listeners\TestEventListener', + ], + ]; + + /** + * Register any events for your application. + */ + public function boot() + { + parent::boot(); + } +}