🔧 Acorn v3 (Laravel 9.x), drop PHP 7.4 support (#3097)

Co-authored-by: retlehs <retlehs@users.noreply.github.com>
Co-authored-by: Brandon Nifong <brandon@tendency.me>
This commit is contained in:
Ben Word
2023-01-27 15:43:23 -07:00
committed by GitHub
parent 523c99c4ec
commit 03386f06ab
5 changed files with 9 additions and 23 deletions

View File

@@ -53,7 +53,7 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: ['7.4', '8.0', '8.1']
php: ['8.0', '8.1']
steps:
- name: Checkout the project

View File

@@ -55,7 +55,7 @@ Make sure all dependencies have been installed before moving on:
- [Acorn](https://docs.roots.io/acorn/2.x/installation/) v2
- [WordPress](https://wordpress.org/) >= 5.9
- [PHP](https://secure.php.net/manual/en/install.php) >= 7.4.0 (with [`php-mbstring`](https://secure.php.net/manual/en/book.mbstring.php) enabled)
- [PHP](https://secure.php.net/manual/en/install.php) >= 8.0 (with [`php-mbstring`](https://secure.php.net/manual/en/book.mbstring.php) enabled)
- [Composer](https://getcomposer.org/download/)
- [Node.js](http://nodejs.org/) >= 16
- [Yarn](https://yarnpkg.com/en/docs/install)

View File

@@ -2,9 +2,9 @@
namespace App\Providers;
use Roots\Acorn\ServiceProvider;
use Roots\Acorn\Sage\SageServiceProvider;
class ThemeServiceProvider extends ServiceProvider
class ThemeServiceProvider extends SageServiceProvider
{
/**
* Register any application services.
@@ -13,7 +13,7 @@ class ThemeServiceProvider extends ServiceProvider
*/
public function register()
{
//
parent::register();
}
/**
@@ -23,6 +23,6 @@ class ThemeServiceProvider extends ServiceProvider
*/
public function boot()
{
//
parent::boot();
}
}

View File

@@ -39,7 +39,7 @@
}
},
"require": {
"php": "^7.4|^8.0"
"php": "^8.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "3.7.1"

View File

@@ -30,13 +30,13 @@ require $composer;
*/
try {
\Roots\bootloader();
\Roots\bootloader()->boot();
} catch (Throwable $e) {
wp_die(
__('You need to install Acorn to use this theme.', 'sage'),
'',
[
'link_url' => 'https://docs.roots.io/acorn/2.x/installation/',
'link_url' => 'https://roots.io/acorn/docs/installation/',
'link_text' => __('Acorn Docs: Installation', 'sage'),
]
);
@@ -63,17 +63,3 @@ collect(['setup', 'filters'])
);
}
});
/*
|--------------------------------------------------------------------------
| Enable Sage Theme Support
|--------------------------------------------------------------------------
|
| Once our theme files are registered and available for use, we are almost
| ready to boot our application. But first, we need to signal to Acorn
| that we will need to initialize the necessary service providers built in
| for Sage when booting.
|
*/
add_theme_support('sage');