From 4ba78a39706dd468864ab63da2afcd0af99158d2 Mon Sep 17 00:00:00 2001 From: "s.tabatabai" Date: Sun, 29 Nov 2020 19:49:25 +0330 Subject: [PATCH] feat: implement bouncer package --- composer.json | 1 + composer.lock | 302 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 301 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 63643c6..6b147a4 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,7 @@ "laravel/passport": "^7.3", "laravel/tinker": "^1.0", "maatwebsite/excel": "^3.1", + "silber/bouncer": "v1.0.0-rc.9", "spatie/laravel-medialibrary": "^7.0.0", "wm/blog": "dev-master", "wm/common": "dev-master", diff --git a/composer.lock b/composer.lock index bff05ce..cace061 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": "24364d0ae2a627d5aeb2db02a3a7e64e", + "content-hash": "210acef9d60147e0fee369630be2adf5", "packages": [ { "name": "aws/aws-sdk-php", @@ -1853,6 +1853,16 @@ "php", "phpspreadsheet" ], + "funding": [ + { + "url": "https://laravel-excel.com/commercial-support", + "type": "custom" + }, + { + "url": "https://github.com/patrickbrouwers", + "type": "github" + } + ], "time": "2020-02-28T15:47:45+00:00" }, { @@ -3225,6 +3235,76 @@ ], "time": "2020-02-21T04:36:14+00:00" }, + { + "name": "silber/bouncer", + "version": "v1.0.0-rc.9", + "source": { + "type": "git", + "url": "https://github.com/JosephSilber/bouncer.git", + "reference": "05f030bb88d9a26d6cd9c580f883a0dd0d9c767f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/JosephSilber/bouncer/zipball/05f030bb88d9a26d6cd9c580f883a0dd0d9c767f", + "reference": "05f030bb88d9a26d6cd9c580f883a0dd0d9c767f", + "shasum": "" + }, + "require": { + "illuminate/auth": "^6.0|^7.0|^8.0", + "illuminate/cache": "^6.0|^7.0|^8.0", + "illuminate/container": "^6.0|^7.0|^8.0", + "illuminate/contracts": "^6.0|^7.0|^8.0", + "illuminate/database": "^6.0|^7.0|^8.0", + "php": "^7.2" + }, + "require-dev": { + "illuminate/console": "^6.0|^7.0|^8.0", + "illuminate/events": "^6.0|^7.0|^8.0", + "larapack/dd": "^1.1", + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "illuminate/console": "Allows running the bouncer:clean artisan command", + "illuminate/events": "Required for multi-tenancy support" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Silber\\Bouncer\\BouncerServiceProvider" + ], + "aliases": { + "Bouncer": "Silber\\Bouncer\\BouncerFacade" + } + } + }, + "autoload": { + "psr-4": { + "Silber\\Bouncer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Joseph Silber", + "email": "contact@josephsilber.com" + } + ], + "description": "Eloquent roles and abilities.", + "keywords": [ + "abilities", + "acl", + "capabilities", + "eloquent", + "laravel", + "permissions", + "roles" + ], + "time": "2020-09-08T15:47:38+00:00" + }, { "name": "spatie/image", "version": "1.7.6", @@ -3413,6 +3493,12 @@ "media", "spatie" ], + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + } + ], "time": "2020-03-09T16:43:55+00:00" }, { @@ -3649,6 +3735,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-15T07:58:55+00:00" }, { @@ -3702,6 +3802,20 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-05-20T17:43:50+00:00" }, { @@ -3759,6 +3873,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-09T05:20:36+00:00" }, { @@ -3866,6 +3994,20 @@ ], "description": "Symfony ErrorHandler Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-25T08:51:35+00:00" }, { @@ -3937,6 +4079,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-18T14:07:46+00:00" }, { @@ -4048,6 +4204,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-02T16:08:58+00:00" }, { @@ -4164,6 +4334,20 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-13T05:00:26+00:00" }, { @@ -4256,6 +4440,20 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-27T04:25:44+00:00" }, { @@ -4319,6 +4517,20 @@ "mime", "mime-type" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-02T16:23:27+00:00" }, { @@ -4944,6 +5156,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-02T16:08:58+00:00" }, { @@ -5085,6 +5311,20 @@ "uri", "url" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-02T16:08:58+00:00" }, { @@ -5223,6 +5463,20 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-24T09:40:01+00:00" }, { @@ -5284,6 +5538,20 @@ "interoperability", "standards" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-07T11:33:47+00:00" }, { @@ -5361,6 +5629,20 @@ "debug", "dump" ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-18T08:35:10+00:00" }, { @@ -5424,6 +5706,20 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-09-27T03:44:28+00:00" }, { @@ -6405,6 +6701,7 @@ "faker", "fixtures" ], + "abandoned": true, "time": "2019-12-12T13:22:17+00:00" }, { @@ -8073,5 +8370,6 @@ "platform": { "php": "^7.2" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" }