🔧⬆️ Acorn v5 (#3201)
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
|||||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php: ['8.1', '8.2']
|
php: ['8.2']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the project
|
- name: Checkout the project
|
||||||
|
|||||||
@@ -39,7 +39,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.1"
|
"php": ">=8.2",
|
||||||
|
"roots/acorn": "v5.0.0-beta.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"laravel/pint": "^1.13"
|
"laravel/pint": "^1.13"
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Roots\Acorn\Application;
|
||||||
|
use Roots\Acorn\Configuration\Exceptions;
|
||||||
|
use Roots\Acorn\Configuration\Middleware;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Register The Auto Loader
|
| Register The Auto Loader
|
||||||
@@ -29,18 +33,16 @@ require $composer;
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (! function_exists('\Roots\bootloader')) {
|
add_action('after_setup_theme', function () {
|
||||||
wp_die(
|
Application::configure()
|
||||||
__('You need to install Acorn to use this theme.', 'sage'),
|
->withMiddleware(function (Middleware $middleware) {
|
||||||
'',
|
//
|
||||||
[
|
})
|
||||||
'link_url' => 'https://roots.io/acorn/docs/installation/',
|
->withExceptions(function (Exceptions $exceptions) {
|
||||||
'link_text' => __('Acorn Docs: Installation', 'sage'),
|
//
|
||||||
]
|
})
|
||||||
);
|
->boot();
|
||||||
}
|
}, 0);
|
||||||
|
|
||||||
\Roots\bootloader()->boot();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user