mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -63,7 +63,10 @@
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Tests\\": "tests/"
|
"Tests\\": "tests/"
|
||||||
}
|
},
|
||||||
|
"files": [
|
||||||
|
"app/helpers.php"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"laravel": {
|
"laravel": {
|
||||||
|
|
Loading…
Reference in a new issue