From 90e1b3317d058294a9ed3bc15012055603278c72 Mon Sep 17 00:00:00 2001 From: Nabeel S Date: Mon, 10 Feb 2020 10:40:42 -0500 Subject: [PATCH] Distro zip file from tar file #449 (#543) * Create zip file from tar file * Formatting --- .travis/deploy_script.sh | 10 + app/Providers/EventServiceProvider.php | 13 + composer.json | 3 +- composer.lock | 356 +++++++++++------- config/installer.php | 10 - config/self-update.php | 56 +++ .../mails/update-available.blade.php | 5 + .../vendor/self-update/self-update.blade.php | 0 8 files changed, 303 insertions(+), 150 deletions(-) delete mode 100644 config/installer.php create mode 100644 config/self-update.php create mode 100644 resources/views/vendor/self-update/mails/update-available.blade.php create mode 100644 resources/views/vendor/self-update/self-update.blade.php diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index 652471cd..4d74bbab 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -35,6 +35,7 @@ if [ "$TRAVIS" = "true" ]; then FILE_NAME="phpvms-$PKG_NAME" TAR_NAME="$FILE_NAME.tar.gz" + ZIP_NAME="$FILE_NAME.zip" echo "Cleaning files" @@ -109,6 +110,15 @@ if [ "$TRAVIS" = "true" ]; then tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms sha256sum $TAR_NAME >"$TAR_NAME.sha256" + # Create zip https://stackoverflow.com/a/6301947 + for f in *.tar.gz;\ + do rm -rf ${f%.tar.gz} ;\ + mkdir ${f%.tar.gz} ;\ + tar -C ${f%.tar.gz} zxvf $f ;\ + zip -r ${f%.tar.gz} $f.zip ;\ + rm -rf ${f%.tar.gz} ;\ + done + echo "Uploading to S3" mkdir -p $TRAVIS_BUILD_DIR/build cd $TRAVIS_BUILD_DIR/build diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index 6accec41..7df4e162 100755 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -11,6 +11,10 @@ use App\Listeners\ExpenseListener; use App\Listeners\FinanceEventHandler; use App\Listeners\UserStateListener; use App\Notifications\EventHandler; +use Codedge\Updater\Events\UpdateAvailable; +use Codedge\Updater\Events\UpdateSucceeded; +use Codedge\Updater\Listeners\SendUpdateAvailableNotification; +use Codedge\Updater\Listeners\SendUpdateSucceededNotification; use Illuminate\Auth\Events\Registered; use Illuminate\Auth\Listeners\SendEmailVerificationNotification; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; @@ -33,6 +37,15 @@ class EventServiceProvider extends ServiceProvider UserStatsChanged::class => [ AwardListener::class, ], + + UpdateAvailable::class => [ + SendUpdateAvailableNotification::class, + ], + + UpdateSucceeded::class => [ + SendUpdateSucceededNotification::class, + ], + ]; protected $subscribe = [ diff --git a/composer.json b/composer.json index 54b37336..192af2e9 100755 --- a/composer.json +++ b/composer.json @@ -49,7 +49,8 @@ "symfony/polyfill-iconv": "~1.12", "theiconic/php-ga-measurement-protocol": "2.7.*", "tivie/php-os-detector": "~1.1.0", - "webpatser/laravel-uuid": "~3.0" + "webpatser/laravel-uuid": "~3.0", + "codedge/laravel-selfupdater": "^2.5" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.0", diff --git a/composer.lock b/composer.lock index 93751f4d..ac37cd4a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "7ab7801c9f860a11cf2eca809a84de43", + "content-hash": "b68aa676232997053c94551f734d2081", "packages": [ { "name": "akaunting/money", @@ -556,6 +556,74 @@ ], "time": "2017-03-13T09:14:27+00:00" }, + { + "name": "codedge/laravel-selfupdater", + "version": "2.5.1", + "source": { + "type": "git", + "url": "https://github.com/codedge/laravel-selfupdater.git", + "reference": "6f8c2be280bff00dc8a6c2ef01d4836ad1cae4ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/codedge/laravel-selfupdater/zipball/6f8c2be280bff00dc8a6c2ef01d4836ad1cae4ed", + "reference": "6f8c2be280bff00dc8a6c2ef01d4836ad1cae4ed", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-zip": "*", + "guzzlehttp/guzzle": "6.*", + "laravel/framework": "^5.8|6.*", + "php": ">=7.2" + }, + "require-dev": { + "dg/bypass-finals": "^1.1", + "mockery/mockery": "^1.0", + "orchestra/testbench": "^4.0", + "phpunit/phpunit": "^8.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Codedge\\Updater\\UpdaterServiceProvider" + ], + "aliases": { + "Updater": "Codedge\\Updater\\UpdaterFacade" + } + } + }, + "autoload": { + "psr-4": { + "Codedge\\Updater\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Holger Lösken", + "email": "holger.loesken@codedge.de", + "homepage": "http://codedge.de", + "role": "Developer" + } + ], + "description": "Providing an auto-updating functionality for your self-hosted Laravel application.", + "keywords": [ + "auto update", + "auto-update", + "laravel", + "laravel application", + "self update", + "self-hosted laravel application", + "self-update", + "update" + ], + "time": "2020-02-10T12:01:41+00:00" + }, { "name": "composer/ca-bundle", "version": "1.2.6", @@ -2329,16 +2397,16 @@ }, { "name": "laravel/framework", - "version": "v6.13.1", + "version": "v6.14.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "f0059760814b76fb5f98bb80628607c7560ebe58" + "reference": "9e78f1aeb2c60bd7badcbafc352a9a2c5863c60c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/f0059760814b76fb5f98bb80628607c7560ebe58", - "reference": "f0059760814b76fb5f98bb80628607c7560ebe58", + "url": "https://api.github.com/repos/laravel/framework/zipball/9e78f1aeb2c60bd7badcbafc352a9a2c5863c60c", + "reference": "9e78f1aeb2c60bd7badcbafc352a9a2c5863c60c", "shasum": "" }, "require": { @@ -2426,9 +2494,9 @@ "ext-posix": "Required to use all features of the queue worker.", "ext-redis": "Required to use the Redis cache and queue drivers.", "filp/whoops": "Required for friendly error pages in development (^2.4).", - "fzaninotto/faker": "Required to use the eloquent factory builder (^1.4).", + "fzaninotto/faker": "Required to use the eloquent factory builder (^1.9.1).", "guzzlehttp/guzzle": "Required to use the Mailgun mail driver and the ping methods on schedules (^6.0).", - "laravel/tinker": "Required to use the tinker console command (^1.0).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", @@ -2472,7 +2540,7 @@ "framework", "laravel" ], - "time": "2020-01-28T21:44:01+00:00" + "time": "2020-02-04T14:38:06+00:00" }, { "name": "laravel/helpers", @@ -2597,30 +2665,31 @@ }, { "name": "league/commonmark", - "version": "1.2.2", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "34cf4ddb3892c715ae785c880e6691d839cff88d" + "reference": "4f30be7a2cbf3bfa5788abab71384713e48f451f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/34cf4ddb3892c715ae785c880e6691d839cff88d", - "reference": "34cf4ddb3892c715ae785c880e6691d839cff88d", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/4f30be7a2cbf3bfa5788abab71384713e48f451f", + "reference": "4f30be7a2cbf3bfa5788abab71384713e48f451f", "shasum": "" }, "require": { "ext-mbstring": "*", "php": "^7.1" }, - "replace": { - "colinodell/commonmark-php": "*" + "conflict": { + "scrutinizer/ocular": "1.7.*" }, "require-dev": { "cebe/markdown": "~1.0", "commonmark/commonmark.js": "0.29.1", "erusev/parsedown": "~1.0", "ext-json": "*", + "github/gfm": "0.29.0", "michelf/php-markdown": "~1.4", "mikehaertl/php-shellcommand": "^1.4", "phpstan/phpstan-shim": "^0.11.5", @@ -2628,16 +2697,13 @@ "scrutinizer/ocular": "^1.5", "symfony/finder": "^4.2" }, - "suggest": { - "league/commonmark-extras": "Library of useful extensions including smart punctuation" - }, "bin": [ "bin/commonmark" ], "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -2657,14 +2723,19 @@ "role": "Lead Developer" } ], - "description": "PHP Markdown parser based on the CommonMark spec", + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and Github-Flavored Markdown (GFM)", "homepage": "https://commonmark.thephpleague.com", "keywords": [ "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", "markdown", + "md", "parser" ], - "time": "2020-01-16T01:18:13+00:00" + "time": "2020-02-08T23:42:03+00:00" }, { "name": "league/commonmark-ext-table", @@ -2800,16 +2871,16 @@ }, { "name": "league/flysystem", - "version": "1.0.63", + "version": "1.0.64", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "8132daec326565036bc8e8d1876f77ec183a7bd6" + "reference": "d13c43dbd4b791f815215959105a008515d1a2e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/8132daec326565036bc8e8d1876f77ec183a7bd6", - "reference": "8132daec326565036bc8e8d1876f77ec183a7bd6", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/d13c43dbd4b791f815215959105a008515d1a2e0", + "reference": "d13c43dbd4b791f815215959105a008515d1a2e0", "shasum": "" }, "require": { @@ -2821,7 +2892,7 @@ }, "require-dev": { "phpspec/phpspec": "^3.4", - "phpunit/phpunit": "^5.7.10" + "phpunit/phpunit": "^5.7.26" }, "suggest": { "ext-fileinfo": "Required for MimeType", @@ -2880,32 +2951,33 @@ "sftp", "storage" ], - "time": "2020-01-04T16:30:31+00:00" + "time": "2020-02-05T18:14:17+00:00" }, { "name": "league/geotools", - "version": "0.8.0", + "version": "0.8.1", "source": { "type": "git", "url": "https://github.com/thephpleague/geotools.git", - "reference": "ed02a15c76bbf793a87932d8c55b83a3783429ea" + "reference": "b62a49e9fc418d0deb3a41e529ccef0d666b06d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/geotools/zipball/ed02a15c76bbf793a87932d8c55b83a3783429ea", - "reference": "ed02a15c76bbf793a87932d8c55b83a3783429ea", + "url": "https://api.github.com/repos/thephpleague/geotools/zipball/b62a49e9fc418d0deb3a41e529ccef0d666b06d0", + "reference": "b62a49e9fc418d0deb3a41e529ccef0d666b06d0", "shasum": "" }, "require": { "cache/array-adapter": "^1.0", + "ext-bcmath": "*", "php": "^7.0", "php-http/discovery": "^1.0", "psr/cache": "^1.0", "react/event-loop": "0.4.*", "react/promise": "^2.2", - "symfony/console": "^2.7 || ^3.0 || ^4.0", - "symfony/property-access": "^2.7 || ^3.0 || ^4.0", - "symfony/serializer": "^2.7 || ^3.0 || ^4.0", + "symfony/console": "^2.7 || ^3.0 || ^4.0 || ^5.0", + "symfony/property-access": "^2.7 || ^3.0 || ^4.0 || ^5.0", + "symfony/serializer": "^2.7 || ^3.0 || ^4.0 || ^5.0", "willdurand/geocoder": "^4.2" }, "replace": { @@ -2942,7 +3014,6 @@ } ], "description": "Geo-related tools PHP 7.0+ library", - "homepage": "http://geotools-php.org/", "keywords": [ "async", "batch", @@ -2950,11 +3021,16 @@ "distance", "geocoder", "geocoding", + "geohash", "geoip", + "geolocation", "geometry", - "geotools" + "geotools", + "latitude", + "latlong", + "longitude" ], - "time": "2018-02-22T05:37:51+00:00" + "time": "2020-01-30T14:23:42+00:00" }, { "name": "league/iso3166", @@ -3834,16 +3910,16 @@ }, { "name": "prettus/l5-repository", - "version": "2.6.40", + "version": "2.6.41", "source": { "type": "git", "url": "https://github.com/andersao/l5-repository.git", - "reference": "48ed6d347941bf04927a3cd490df7bba7a02ca36" + "reference": "363904bd1d01325223197d3de1ea3f6fc9da2a06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/andersao/l5-repository/zipball/48ed6d347941bf04927a3cd490df7bba7a02ca36", - "reference": "48ed6d347941bf04927a3cd490df7bba7a02ca36", + "url": "https://api.github.com/repos/andersao/l5-repository/zipball/363904bd1d01325223197d3de1ea3f6fc9da2a06", + "reference": "363904bd1d01325223197d3de1ea3f6fc9da2a06", "shasum": "" }, "require": { @@ -3895,7 +3971,7 @@ "model", "repository" ], - "time": "2019-12-22T13:53:50+00:00" + "time": "2020-02-05T06:48:26+00:00" }, { "name": "prettus/laravel-validation", @@ -4462,16 +4538,16 @@ }, { "name": "scrivo/highlight.php", - "version": "v9.18.0.0", + "version": "v9.18.1.0", "source": { "type": "git", "url": "https://github.com/scrivo/highlight.php.git", - "reference": "0e7860058231b5bc843d1f5ac5c091be6b15b2d1" + "reference": "a57c858cb753f543965a1e17af386a648012ed8f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/0e7860058231b5bc843d1f5ac5c091be6b15b2d1", - "reference": "0e7860058231b5bc843d1f5ac5c091be6b15b2d1", + "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/a57c858cb753f543965a1e17af386a648012ed8f", + "reference": "a57c858cb753f543965a1e17af386a648012ed8f", "shasum": "" }, "require": { @@ -4526,7 +4602,7 @@ "highlight.php", "syntax" ], - "time": "2020-01-29T15:18:09+00:00" + "time": "2020-02-03T02:19:36+00:00" }, { "name": "sebastiaanluca/laravel-helpers", @@ -5024,16 +5100,16 @@ }, { "name": "symfony/console", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "e9ee09d087e2c88eaf6e5fc0f5c574f64d100e4f" + "reference": "f512001679f37e6a042b51897ed24a2f05eba656" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/e9ee09d087e2c88eaf6e5fc0f5c574f64d100e4f", - "reference": "e9ee09d087e2c88eaf6e5fc0f5c574f64d100e4f", + "url": "https://api.github.com/repos/symfony/console/zipball/f512001679f37e6a042b51897ed24a2f05eba656", + "reference": "f512001679f37e6a042b51897ed24a2f05eba656", "shasum": "" }, "require": { @@ -5096,11 +5172,11 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2020-01-10T21:54:01+00:00" + "time": "2020-01-25T12:44:29+00:00" }, { "name": "symfony/css-selector", - "version": "v5.0.3", + "version": "v5.0.4", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", @@ -5153,16 +5229,16 @@ }, { "name": "symfony/debug", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "89c3fd5c299b940333bc6fe9f1b8db1b0912c759" + "reference": "20236471058bbaa9907382500fc14005c84601f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/89c3fd5c299b940333bc6fe9f1b8db1b0912c759", - "reference": "89c3fd5c299b940333bc6fe9f1b8db1b0912c759", + "url": "https://api.github.com/repos/symfony/debug/zipball/20236471058bbaa9907382500fc14005c84601f0", + "reference": "20236471058bbaa9907382500fc14005c84601f0", "shasum": "" }, "require": { @@ -5205,20 +5281,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2020-01-08T17:29:02+00:00" + "time": "2020-01-25T12:44:29+00:00" }, { "name": "symfony/error-handler", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "a59789092e40ad08465dc2cdc55651be503d0d5a" + "reference": "d2721499ffcaf246a743e01cdf6696d3d5dd74c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/a59789092e40ad08465dc2cdc55651be503d0d5a", - "reference": "a59789092e40ad08465dc2cdc55651be503d0d5a", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/d2721499ffcaf246a743e01cdf6696d3d5dd74c1", + "reference": "d2721499ffcaf246a743e01cdf6696d3d5dd74c1", "shasum": "" }, "require": { @@ -5261,11 +5337,11 @@ ], "description": "Symfony ErrorHandler Component", "homepage": "https://symfony.com", - "time": "2020-01-08T17:29:02+00:00" + "time": "2020-01-27T09:48:47+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", @@ -5393,7 +5469,7 @@ }, { "name": "symfony/filesystem", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -5443,7 +5519,7 @@ }, { "name": "symfony/finder", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", @@ -5492,16 +5568,16 @@ }, { "name": "symfony/http-foundation", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "c33998709f3fe9b8e27e0277535b07fbf6fde37a" + "reference": "491a20dfa87e0b3990170593bc2de0bb34d828a5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/c33998709f3fe9b8e27e0277535b07fbf6fde37a", - "reference": "c33998709f3fe9b8e27e0277535b07fbf6fde37a", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/491a20dfa87e0b3990170593bc2de0bb34d828a5", + "reference": "491a20dfa87e0b3990170593bc2de0bb34d828a5", "shasum": "" }, "require": { @@ -5543,20 +5619,20 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2020-01-04T13:00:46+00:00" + "time": "2020-01-31T09:11:17+00:00" }, { "name": "symfony/http-kernel", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "16f2aa3c54b08483fba5375938f60b1ff83b6bd2" + "reference": "62116a9c8fb15faabb158ad9cb785c353c2572e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/16f2aa3c54b08483fba5375938f60b1ff83b6bd2", - "reference": "16f2aa3c54b08483fba5375938f60b1ff83b6bd2", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/62116a9c8fb15faabb158ad9cb785c353c2572e5", + "reference": "62116a9c8fb15faabb158ad9cb785c353c2572e5", "shasum": "" }, "require": { @@ -5633,11 +5709,11 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2020-01-21T13:23:17+00:00" + "time": "2020-01-31T12:45:06+00:00" }, { "name": "symfony/inflector", - "version": "v5.0.3", + "version": "v5.0.4", "source": { "type": "git", "url": "https://github.com/symfony/inflector.git", @@ -5695,7 +5771,7 @@ }, { "name": "symfony/mime", - "version": "v5.0.3", + "version": "v5.0.4", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", @@ -6108,7 +6184,7 @@ }, { "name": "symfony/process", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/process.git", @@ -6157,24 +6233,24 @@ }, { "name": "symfony/property-access", - "version": "v4.4.3", + "version": "v5.0.4", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "090b4bc92ded1ec512f7e2ed1691210769dffdb3" + "reference": "18617a8c26b97a262f816c78765eb3cd91630e19" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/090b4bc92ded1ec512f7e2ed1691210769dffdb3", - "reference": "090b4bc92ded1ec512f7e2ed1691210769dffdb3", + "url": "https://api.github.com/repos/symfony/property-access/zipball/18617a8c26b97a262f816c78765eb3cd91630e19", + "reference": "18617a8c26b97a262f816c78765eb3cd91630e19", "shasum": "" }, "require": { - "php": "^7.1.3", - "symfony/inflector": "^3.4|^4.0|^5.0" + "php": "^7.2.5", + "symfony/inflector": "^4.4|^5.0" }, "require-dev": { - "symfony/cache": "^3.4|^4.0|^5.0" + "symfony/cache": "^4.4|^5.0" }, "suggest": { "psr/cache-implementation": "To cache access methods." @@ -6182,7 +6258,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -6220,11 +6296,11 @@ "property path", "reflection" ], - "time": "2020-01-04T13:00:46+00:00" + "time": "2020-01-04T14:08:26+00:00" }, { "name": "symfony/routing", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", @@ -6300,49 +6376,50 @@ }, { "name": "symfony/serializer", - "version": "v4.4.3", + "version": "v5.0.4", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "76ecc214a93b763c29b924277e85f64326f9fbb2" + "reference": "a76fc03e125719ef4ce18522b2347bf103b698d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/76ecc214a93b763c29b924277e85f64326f9fbb2", - "reference": "76ecc214a93b763c29b924277e85f64326f9fbb2", + "url": "https://api.github.com/repos/symfony/serializer/zipball/a76fc03e125719ef4ce18522b2347bf103b698d0", + "reference": "a76fc03e125719ef4ce18522b2347bf103b698d0", "shasum": "" }, "require": { - "php": "^7.1.3", + "php": "^7.2.5", "symfony/polyfill-ctype": "~1.8" }, "conflict": { "phpdocumentor/type-resolver": "<0.2.1", - "symfony/dependency-injection": "<3.4", - "symfony/property-access": "<3.4", - "symfony/property-info": "<3.4", - "symfony/yaml": "<3.4" + "symfony/dependency-injection": "<4.4", + "symfony/property-access": "<4.4", + "symfony/property-info": "<4.4", + "symfony/yaml": "<4.4" }, "require-dev": { "doctrine/annotations": "~1.0", "doctrine/cache": "~1.0", "phpdocumentor/reflection-docblock": "^3.2|^4.0", - "symfony/cache": "^3.4|^4.0|^5.0", - "symfony/config": "^3.4|^4.0|^5.0", - "symfony/dependency-injection": "^3.4|^4.0|^5.0", + "symfony/cache": "^4.4|^5.0", + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", "symfony/error-handler": "^4.4|^5.0", - "symfony/http-foundation": "^3.4|^4.0|^5.0", - "symfony/property-access": "^3.4|^4.0|^5.0", - "symfony/property-info": "^3.4.13|~4.0|^5.0", - "symfony/validator": "^3.4|^4.0|^5.0", - "symfony/yaml": "^3.4|^4.0|^5.0" + "symfony/http-foundation": "^4.4|^5.0", + "symfony/mime": "^4.4|^5.0", + "symfony/property-access": "^4.4|^5.0", + "symfony/property-info": "^4.4|^5.0", + "symfony/validator": "^4.4|^5.0", + "symfony/yaml": "^4.4|^5.0" }, "suggest": { "doctrine/annotations": "For using the annotation mapping. You will also need doctrine/cache.", "doctrine/cache": "For using the default cached annotation reader and metadata cache.", "psr/cache-implementation": "For using the metadata cache.", "symfony/config": "For using the XML mapping loader.", - "symfony/http-foundation": "For using a MIME type guesser within the DataUriNormalizer.", + "symfony/mime": "For using a MIME type guesser within the DataUriNormalizer.", "symfony/property-access": "For using the ObjectNormalizer.", "symfony/property-info": "To deserialize relations.", "symfony/yaml": "For using the default YAML mapping loader." @@ -6350,7 +6427,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -6377,7 +6454,7 @@ ], "description": "Symfony Serializer Component", "homepage": "https://symfony.com", - "time": "2020-01-07T22:30:39+00:00" + "time": "2020-01-08T17:33:29+00:00" }, { "name": "symfony/service-contracts", @@ -6439,7 +6516,7 @@ }, { "name": "symfony/translation", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", @@ -6572,16 +6649,16 @@ }, { "name": "symfony/var-dumper", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "7cfa470bc3b1887a7b2a47c0a702a84ad614fa92" + "reference": "46b53fd714568af343953c039ff47b67ce8af8d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/7cfa470bc3b1887a7b2a47c0a702a84ad614fa92", - "reference": "7cfa470bc3b1887a7b2a47c0a702a84ad614fa92", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/46b53fd714568af343953c039ff47b67ce8af8d6", + "reference": "46b53fd714568af343953c039ff47b67ce8af8d6", "shasum": "" }, "require": { @@ -6644,11 +6721,11 @@ "debug", "dump" ], - "time": "2020-01-04T13:00:46+00:00" + "time": "2020-01-25T12:44:29+00:00" }, { "name": "symfony/yaml", - "version": "v4.4.3", + "version": "v4.4.4", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", @@ -8199,41 +8276,38 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.3.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c" + "reference": "a48807183a4b819072f26e347bbd0b5199a9d15f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/da3fd972d6bafd628114f7e7e036f45944b62e9c", - "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/a48807183a4b819072f26e347bbd0b5199a9d15f", + "reference": "a48807183a4b819072f26e347bbd0b5199a9d15f", "shasum": "" }, "require": { - "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", - "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", - "webmozart/assert": "^1.0" + "ext-filter": "^7.1", + "php": "^7.2", + "phpdocumentor/reflection-common": "^2.0", + "phpdocumentor/type-resolver": "^1.0", + "webmozart/assert": "^1" }, "require-dev": { - "doctrine/instantiator": "^1.0.5", - "mockery/mockery": "^1.0", - "phpdocumentor/type-resolver": "0.4.*", - "phpunit/phpunit": "^6.4" + "doctrine/instantiator": "^1", + "mockery/mockery": "^1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.x-dev" + "dev-master": "5.x-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] + "phpDocumentor\\Reflection\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -8244,10 +8318,14 @@ { "name": "Mike van Riel", "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2019-12-28T18:55:12+00:00" + "time": "2020-02-09T09:16:15+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -9311,16 +9389,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.5.3", + "version": "3.5.4", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb" + "reference": "dceec07328401de6211037abbb18bda423677e26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", - "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dceec07328401de6211037abbb18bda423677e26", + "reference": "dceec07328401de6211037abbb18bda423677e26", "shasum": "" }, "require": { @@ -9358,11 +9436,11 @@ "phpcs", "standards" ], - "time": "2019-12-04T04:46:47+00:00" + "time": "2020-01-30T22:20:29+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.0.3", + "version": "v5.0.4", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", @@ -9475,7 +9553,7 @@ }, { "name": "symfony/stopwatch", - "version": "v5.0.3", + "version": "v5.0.4", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", diff --git a/config/installer.php b/config/installer.php deleted file mode 100644 index 6922b048..00000000 --- a/config/installer.php +++ /dev/null @@ -1,10 +0,0 @@ - [ - // You can change this to a lower version, the lowest - // can be 7.0. However, there's no guarantee that things - // will work properly. Change at your peril! - 'version' => '7.1.3', - ], -]; diff --git a/config/self-update.php b/config/self-update.php new file mode 100644 index 00000000..f19d523b --- /dev/null +++ b/config/self-update.php @@ -0,0 +1,56 @@ + 'http', + 'version_installed' => env('SELF_UPDATER_VERSION_INSTALLED', ''), + + 'repository_types' => [ + 'github' => [ + 'type' => 'github', + 'repository_vendor' => 'nabeelio', + 'repository_name' => 'phpvms', + 'repository_url' => 'https://github.com/nabeelio/phpvms', + 'download_path' => env('SELF_UPDATER_DOWNLOAD_PATH', '/tmp'), + 'private_access_token' => '', + 'use_branch' => 'master', + ], + 'http' => [ + 'type' => 'http', + 'repository_url' => 'http://downloads.phpvms.net', + 'pkg_filename_format' => 'phpvms-v_VERSION_.zip', + 'download_path' => env('SELF_UPDATER_DOWNLOAD_PATH', '/tmp'), + 'private_access_token' => env('SELF_UPDATER_HTTP_PRIVATE_ACCESS_TOKEN', ''), + ], + ], + + 'exclude_folders' => [ + 'node_modules', + 'bootstrap/cache', + 'bower', + 'storage/app', + 'storage/framework', + 'storage/logs', + 'storage/self-update', + ], + + 'log_events' => true, + + /* + |--------------------------------------------------------------------------- + | Register custom artisan commands + |--------------------------------------------------------------------------- + */ + + 'artisan_commands' => [ + 'pre_update' => [ + //'command:signature' => [ + // 'class' => Command class + // 'params' => [] + //] + ], + 'post_update' => [ + + ], + ], + +]; diff --git a/resources/views/vendor/self-update/mails/update-available.blade.php b/resources/views/vendor/self-update/mails/update-available.blade.php new file mode 100644 index 00000000..ffa14dc9 --- /dev/null +++ b/resources/views/vendor/self-update/mails/update-available.blade.php @@ -0,0 +1,5 @@ +Hello! + +The new version {{ $newVersion }} is available. + +Kind regards diff --git a/resources/views/vendor/self-update/self-update.blade.php b/resources/views/vendor/self-update/self-update.blade.php new file mode 100644 index 00000000..e69de29b