Commit 4c2e93c7fa921fb2ea4596206970911849ec1166

Authored by Eder Soares
2 parents 7b31386c 6c1b81f5
Exists in master

Merge branch 'plug-and-play'

app/Extensions/Application.php 0 → 100644
... ... @@ -0,0 +1,11 @@
  1 +<?php
  2 +
  3 +namespace App\Extensions;
  4 +
  5 +use EderSoares\Laravel\PlugAndPlay\Foundation\PlugAndPlayPackages;
  6 +use Illuminate\Foundation\Application as LaravelApplication;
  7 +
  8 +class Application extends LaravelApplication
  9 +{
  10 + use PlugAndPlayPackages;
  11 +}
... ...
bootstrap/app.php
... ... @@ -11,7 +11,7 @@
11 11 |
12 12 */
13 13  
14   -$app = new Illuminate\Foundation\Application(
  14 +$app = new App\Extensions\Application(
15 15 $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
16 16 );
17 17  
... ...
composer.json
... ... @@ -18,20 +18,21 @@
18 18 "composer/semver": "^1.4",
19 19 "cossou/jasperphp": "^2.7",
20 20 "doctrine/dbal": "^2.9",
  21 + "edersoares/laravel-plug-and-play": "^1.0",
21 22 "fideloper/proxy": "^4.0",
22 23 "google/recaptcha": "^1.2",
23 24 "guzzlehttp/guzzle": "^6.3",
24 25 "honeybadger-io/honeybadger-laravel": "^1.4",
25 26 "laravel/framework": "5.8.*",
26 27 "laravel/tinker": "^1.0",
  28 + "league/flysystem-aws-s3-v3": "~1.0",
  29 + "league/flysystem-cached-adapter": "~1.0",
27 30 "maatwebsite/excel": "^3.1",
28 31 "phpoffice/phpspreadsheet": "^1.6",
29 32 "predis/predis": "^1.1",
30 33 "prettus/l5-repository": "^2.6",
31 34 "swiftmailer/swiftmailer": "^6.1",
32   - "tooleks/laravel-asset-version": "^1.0",
33   - "league/flysystem-aws-s3-v3": "~1.0",
34   - "league/flysystem-cached-adapter": "~1.0"
  35 + "tooleks/laravel-asset-version": "^1.0"
35 36 },
36 37 "require-dev": {
37 38 "barryvdh/laravel-debugbar": "^3.2",
... ... @@ -81,6 +82,11 @@
81 82 "laravel/telescope",
82 83 "barryvdh/laravel-debugbar"
83 84 ]
  85 + },
  86 + "merge-plugin": {
  87 + "include": [
  88 + "packages/*/*/composer.json"
  89 + ]
84 90 }
85 91 },
86 92 "scripts": {
... ...
composer.lock
... ... @@ -4,7 +4,7 @@
4 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5 "This file is @generated automatically"
6 6 ],
7   - "content-hash": "b809688eaf9970067bfc1abc85b1a398",
  7 + "content-hash": "b2182aa04c3c385142d972392f6404ab",
8 8 "packages": [
9 9 {
10 10 "name": "aws/aws-sdk-php",
... ... @@ -705,6 +705,57 @@
705 705 "time": "2019-03-31T00:38:28+00:00"
706 706 },
707 707 {
  708 + "name": "edersoares/laravel-plug-and-play",
  709 + "version": "1.0.0",
  710 + "source": {
  711 + "type": "git",
  712 + "url": "https://github.com/edersoares/laravel-plug-and-play.git",
  713 + "reference": "80e07938a0cc06e4dbf79a7cd0d533109cd31c70"
  714 + },
  715 + "dist": {
  716 + "type": "zip",
  717 + "url": "https://api.github.com/repos/edersoares/laravel-plug-and-play/zipball/80e07938a0cc06e4dbf79a7cd0d533109cd31c70",
  718 + "reference": "80e07938a0cc06e4dbf79a7cd0d533109cd31c70",
  719 + "shasum": ""
  720 + },
  721 + "require": {
  722 + "composer-plugin-api": "^1.1",
  723 + "ext-json": "*",
  724 + "laravel/framework": "~5.5|~6",
  725 + "php": ">=7.0.0",
  726 + "wikimedia/composer-merge-plugin": "^1.4"
  727 + },
  728 + "type": "composer-plugin",
  729 + "extra": {
  730 + "branch-alias": [],
  731 + "class": "Wikimedia\\Composer\\MergePlugin",
  732 + "laravel": {
  733 + "providers": [
  734 + "EderSoares\\Laravel\\PlugAndPlay\\PlugAndPlayServiceProvider"
  735 + ]
  736 + }
  737 + },
  738 + "autoload": {
  739 + "psr-4": {
  740 + "EderSoares\\Laravel\\PlugAndPlay\\": "src/"
  741 + }
  742 + },
  743 + "notification-url": "https://packagist.org/downloads/",
  744 + "license": [
  745 + "MIT"
  746 + ],
  747 + "authors": [
  748 + {
  749 + "name": "Eder Soares",
  750 + "email": "edersoares@me.com",
  751 + "homepage": "https://edersoares.me",
  752 + "role": "Developer"
  753 + }
  754 + ],
  755 + "description": "Plug and play packages in Laravel",
  756 + "time": "2019-10-22T02:54:46+00:00"
  757 + },
  758 + {
708 759 "name": "egulias/email-validator",
709 760 "version": "2.1.11",
710 761 "source": {
... ... @@ -4600,6 +4651,55 @@
4600 4651 "environment"
4601 4652 ],
4602 4653 "time": "2019-09-10T21:37:39+00:00"
  4654 + },
  4655 + {
  4656 + "name": "wikimedia/composer-merge-plugin",
  4657 + "version": "v1.4.1",
  4658 + "source": {
  4659 + "type": "git",
  4660 + "url": "https://github.com/wikimedia/composer-merge-plugin.git",
  4661 + "reference": "81c6ac72a24a67383419c7eb9aa2b3437f2ab100"
  4662 + },
  4663 + "dist": {
  4664 + "type": "zip",
  4665 + "url": "https://api.github.com/repos/wikimedia/composer-merge-plugin/zipball/81c6ac72a24a67383419c7eb9aa2b3437f2ab100",
  4666 + "reference": "81c6ac72a24a67383419c7eb9aa2b3437f2ab100",
  4667 + "shasum": ""
  4668 + },
  4669 + "require": {
  4670 + "composer-plugin-api": "^1.0",
  4671 + "php": ">=5.3.2"
  4672 + },
  4673 + "require-dev": {
  4674 + "composer/composer": "~1.0.0",
  4675 + "jakub-onderka/php-parallel-lint": "~0.8",
  4676 + "phpunit/phpunit": "~4.8|~5.0",
  4677 + "squizlabs/php_codesniffer": "~2.1.0"
  4678 + },
  4679 + "type": "composer-plugin",
  4680 + "extra": {
  4681 + "branch-alias": {
  4682 + "dev-master": "1.3.x-dev"
  4683 + },
  4684 + "class": "Wikimedia\\Composer\\MergePlugin"
  4685 + },
  4686 + "autoload": {
  4687 + "psr-4": {
  4688 + "Wikimedia\\Composer\\": "src/"
  4689 + }
  4690 + },
  4691 + "notification-url": "https://packagist.org/downloads/",
  4692 + "license": [
  4693 + "MIT"
  4694 + ],
  4695 + "authors": [
  4696 + {
  4697 + "name": "Bryan Davis",
  4698 + "email": "bd808@wikimedia.org"
  4699 + }
  4700 + ],
  4701 + "description": "Composer plugin to merge multiple composer.json files",
  4702 + "time": "2017-04-25T02:31:25+00:00"
4603 4703 }
4604 4704 ],
4605 4705 "packages-dev": [
... ...
packages/.gitignore 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +*
  2 +!.gitignore
0 3 \ No newline at end of file
... ...