diff --git a/bin/split.sh b/bin/split.sh index 1e2ea0e98e93..806fee08bf74 100755 --- a/bin/split.sh +++ b/bin/split.sh @@ -23,6 +23,7 @@ remote broadcasting git@github.com:illuminate/broadcasting.git remote bus git@github.com:illuminate/bus.git remote cache git@github.com:illuminate/cache.git remote collections git@github.com:illuminate/collections.git +remote conditionable git@github.com:illuminate/conditionable.git remote config git@github.com:illuminate/config.git remote console git@github.com:illuminate/console.git remote container git@github.com:illuminate/container.git @@ -55,6 +56,7 @@ split 'src/Illuminate/Broadcasting' broadcasting split 'src/Illuminate/Bus' bus split 'src/Illuminate/Cache' cache split 'src/Illuminate/Collections' collections +split 'src/Illuminate/Conditionable' conditionable split 'src/Illuminate/Config' config split 'src/Illuminate/Console' console split 'src/Illuminate/Container' container diff --git a/composer.json b/composer.json index 522d3dad721a..85f604fff096 100644 --- a/composer.json +++ b/composer.json @@ -49,6 +49,7 @@ "illuminate/bus": "self.version", "illuminate/cache": "self.version", "illuminate/collections": "self.version", + "illuminate/conditionable": "self.version", "illuminate/config": "self.version", "illuminate/console": "self.version", "illuminate/container": "self.version", @@ -106,7 +107,11 @@ ], "psr-4": { "Illuminate\\": "src/Illuminate/", - "Illuminate\\Support\\": ["src/Illuminate/Macroable/", "src/Illuminate/Collections/"] + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" + ] } }, "autoload-dev": { diff --git a/src/Illuminate/Collections/composer.json b/src/Illuminate/Collections/composer.json index 1ec6a1b6827a..fa91e013a674 100644 --- a/src/Illuminate/Collections/composer.json +++ b/src/Illuminate/Collections/composer.json @@ -15,6 +15,7 @@ ], "require": { "php": "^7.4|^8.0", + "illuminate/conditionable": "^9.0", "illuminate/contracts": "^9.0", "illuminate/macroable": "^9.0" }, diff --git a/src/Illuminate/Collections/HigherOrderWhenProxy.php b/src/Illuminate/Conditionable/HigherOrderWhenProxy.php similarity index 100% rename from src/Illuminate/Collections/HigherOrderWhenProxy.php rename to src/Illuminate/Conditionable/HigherOrderWhenProxy.php diff --git a/src/Illuminate/Conditionable/LICENSE.md b/src/Illuminate/Conditionable/LICENSE.md new file mode 100644 index 000000000000..79810c848f8b --- /dev/null +++ b/src/Illuminate/Conditionable/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Taylor Otwell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/src/Illuminate/Support/Traits/Conditionable.php b/src/Illuminate/Conditionable/Traits/Conditionable.php similarity index 100% rename from src/Illuminate/Support/Traits/Conditionable.php rename to src/Illuminate/Conditionable/Traits/Conditionable.php diff --git a/src/Illuminate/Conditionable/composer.json b/src/Illuminate/Conditionable/composer.json new file mode 100644 index 000000000000..a623d8a9efc4 --- /dev/null +++ b/src/Illuminate/Conditionable/composer.json @@ -0,0 +1,33 @@ +{ + "name": "illuminate/conditionable", + "description": "The Illuminate Conditionable package.", + "license": "MIT", + "homepage": "https://laravel.com", + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "require": { + "php": "^7.4|^8.0" + }, + "autoload": { + "psr-4": { + "Illuminate\\Support\\": "" + } + }, + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "config": { + "sort-packages": true + }, + "minimum-stability": "dev" +} diff --git a/src/Illuminate/Support/composer.json b/src/Illuminate/Support/composer.json index ebeb607d7083..951fbd15bfa6 100644 --- a/src/Illuminate/Support/composer.json +++ b/src/Illuminate/Support/composer.json @@ -19,6 +19,7 @@ "ext-mbstring": "*", "doctrine/inflector": "^2.0", "illuminate/collections": "^9.0", + "illuminate/conditionable": "^9.0", "illuminate/contracts": "^9.0", "illuminate/macroable": "^9.0", "nesbot/carbon": "^2.31",