mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Add helpers
This commit is contained in:
parent
3136f8e137
commit
c6848e99a4
2 changed files with 103 additions and 91 deletions
9
app/helpers.php
Normal file
9
app/helpers.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use App\Services\ConfigCacheService;
|
||||||
|
|
||||||
|
if (!function_exists('config_cache')) {
|
||||||
|
function config_cache($key) {
|
||||||
|
return ConfigCacheService::get($key);
|
||||||
|
}
|
||||||
|
}
|
185
composer.json
185
composer.json
|
@ -1,93 +1,96 @@
|
||||||
{
|
{
|
||||||
"name": "pixelfed/pixelfed",
|
"name": "pixelfed/pixelfed",
|
||||||
"description": "Open and ethical photo sharing platform, powered by ActivityPub federation.",
|
"description": "Open and ethical photo sharing platform, powered by ActivityPub federation.",
|
||||||
"keywords": ["framework", "laravel", "pixelfed", "activitypub", "social", "network", "federation"],
|
"keywords": ["framework", "laravel", "pixelfed", "activitypub", "social", "network", "federation"],
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.3",
|
"php": "^7.3",
|
||||||
"ext-bcmath": "*",
|
"ext-bcmath": "*",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-intl": "*",
|
"ext-intl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-mbstring": "*",
|
"ext-mbstring": "*",
|
||||||
"ext-openssl": "*",
|
"ext-openssl": "*",
|
||||||
"beyondcode/laravel-self-diagnosis": "^1.0.2",
|
"beyondcode/laravel-self-diagnosis": "^1.0.2",
|
||||||
"brick/math": "^0.8",
|
"brick/math": "^0.8",
|
||||||
"buzz/laravel-h-captcha": "1.0.2",
|
"buzz/laravel-h-captcha": "1.0.2",
|
||||||
"doctrine/dbal": "^2.7",
|
"doctrine/dbal": "^2.7",
|
||||||
"fideloper/proxy": "^4.0",
|
"fideloper/proxy": "^4.0",
|
||||||
"fruitcake/laravel-cors": "^2.0",
|
"fruitcake/laravel-cors": "^2.0",
|
||||||
"intervention/image": "^2.4",
|
"intervention/image": "^2.4",
|
||||||
"jenssegers/agent": "^2.6",
|
"jenssegers/agent": "^2.6",
|
||||||
"laravel/framework": "^8.0",
|
"laravel/framework": "^8.0",
|
||||||
"laravel/helpers": "^1.1",
|
"laravel/helpers": "^1.1",
|
||||||
"laravel/horizon": "^5.0",
|
"laravel/horizon": "^5.0",
|
||||||
"laravel/passport": "^10.0",
|
"laravel/passport": "^10.0",
|
||||||
"laravel/tinker": "^2.0",
|
"laravel/tinker": "^2.0",
|
||||||
"laravel/ui": "^2.0",
|
"laravel/ui": "^2.0",
|
||||||
"league/flysystem-aws-s3-v3": "~1.0",
|
"league/flysystem-aws-s3-v3": "~1.0",
|
||||||
"league/flysystem-cached-adapter": "~1.0",
|
"league/flysystem-cached-adapter": "~1.0",
|
||||||
"league/iso3166": "^2.1",
|
"league/iso3166": "^2.1",
|
||||||
"pbmedia/laravel-ffmpeg": "^7.0",
|
"pbmedia/laravel-ffmpeg": "^7.0",
|
||||||
"phpseclib/phpseclib": "~2.0",
|
"phpseclib/phpseclib": "~2.0",
|
||||||
"bacon/bacon-qr-code": "^2.0.3",
|
"bacon/bacon-qr-code": "^2.0.3",
|
||||||
"pixelfed/fractal": "^0.18.0",
|
"pixelfed/fractal": "^0.18.0",
|
||||||
"pragmarx/google2fa": "^8.0",
|
"pragmarx/google2fa": "^8.0",
|
||||||
"pixelfed/laravel-snowflake": "^2.0",
|
"pixelfed/laravel-snowflake": "^2.0",
|
||||||
"pixelfed/zttp": "^0.4",
|
"pixelfed/zttp": "^0.4",
|
||||||
"predis/predis": "^1.1",
|
"predis/predis": "^1.1",
|
||||||
"spatie/laravel-backup": "^6.0.0",
|
"spatie/laravel-backup": "^6.0.0",
|
||||||
"spatie/laravel-image-optimizer": "^1.1",
|
"spatie/laravel-image-optimizer": "^1.1",
|
||||||
"stevebauman/purify": "3.0.*",
|
"stevebauman/purify": "3.0.*",
|
||||||
"symfony/http-kernel": "5.1.5"
|
"symfony/http-kernel": "5.1.5"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"brianium/paratest": "^6.1",
|
"brianium/paratest": "^6.1",
|
||||||
"facade/ignition": "^2.3.6",
|
"facade/ignition": "^2.3.6",
|
||||||
"fzaninotto/faker": "^1.4",
|
"fzaninotto/faker": "^1.4",
|
||||||
"mockery/mockery": "^1.0",
|
"mockery/mockery": "^1.0",
|
||||||
"nunomaduro/collision": "^5.0",
|
"nunomaduro/collision": "^5.0",
|
||||||
"phpunit/phpunit": "^9.0"
|
"phpunit/phpunit": "^9.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"database/seeds",
|
"database/seeds",
|
||||||
"database/factories"
|
"database/factories"
|
||||||
],
|
],
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"App\\": "app/"
|
"App\\": "app/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Tests\\": "tests/"
|
"Tests\\": "tests/"
|
||||||
}
|
},
|
||||||
},
|
"files": [
|
||||||
"extra": {
|
"app/helpers.php"
|
||||||
"laravel": {
|
]
|
||||||
"dont-discover": [
|
},
|
||||||
]
|
"extra": {
|
||||||
}
|
"laravel": {
|
||||||
},
|
"dont-discover": [
|
||||||
"scripts": {
|
]
|
||||||
"post-root-package-install": [
|
}
|
||||||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
},
|
||||||
],
|
"scripts": {
|
||||||
"post-create-project-cmd": [
|
"post-root-package-install": [
|
||||||
"@php artisan key:generate --ansi"
|
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||||
],
|
],
|
||||||
"post-autoload-dump": [
|
"post-create-project-cmd": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
"@php artisan key:generate --ansi"
|
||||||
"@php artisan package:discover --ansi"
|
],
|
||||||
]
|
"post-autoload-dump": [
|
||||||
},
|
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||||
"config": {
|
"@php artisan package:discover --ansi"
|
||||||
"preferred-install": "dist",
|
]
|
||||||
"sort-packages": true,
|
},
|
||||||
"optimize-autoloader": true
|
"config": {
|
||||||
},
|
"preferred-install": "dist",
|
||||||
"minimum-stability": "dev",
|
"sort-packages": true,
|
||||||
"prefer-stable": true
|
"optimize-autoloader": true
|
||||||
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"prefer-stable": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue