Skip to content

Commit 03386f0

Browse files
retlehsLog1x
andauthored
🔧 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>
1 parent 523c99c commit 03386f0

File tree

5 files changed

+9
-23
lines changed

5 files changed

+9
-23
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
if: "!contains(github.event.head_commit.message, '[ci skip]')"
5454
strategy:
5555
matrix:
56-
php: ['7.4', '8.0', '8.1']
56+
php: ['8.0', '8.1']
5757

5858
steps:
5959
- name: Checkout the project

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Make sure all dependencies have been installed before moving on:
5555

5656
- [Acorn](https://docs.roots.io/acorn/2.x/installation/) v2
5757
- [WordPress](https://wordpress.org/) >= 5.9
58-
- [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)
58+
- [PHP](https://secure.php.net/manual/en/install.php) >= 8.0 (with [`php-mbstring`](https://secure.php.net/manual/en/book.mbstring.php) enabled)
5959
- [Composer](https://getcomposer.org/download/)
6060
- [Node.js](http://nodejs.org/) >= 16
6161
- [Yarn](https://yarnpkg.com/en/docs/install)

app/Providers/ThemeServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace App\Providers;
44

5-
use Roots\Acorn\ServiceProvider;
5+
use Roots\Acorn\Sage\SageServiceProvider;
66

7-
class ThemeServiceProvider extends ServiceProvider
7+
class ThemeServiceProvider extends SageServiceProvider
88
{
99
/**
1010
* Register any application services.
@@ -13,7 +13,7 @@ class ThemeServiceProvider extends ServiceProvider
1313
*/
1414
public function register()
1515
{
16-
//
16+
parent::register();
1717
}
1818

1919
/**
@@ -23,6 +23,6 @@ public function register()
2323
*/
2424
public function boot()
2525
{
26-
//
26+
parent::boot();
2727
}
2828
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}
4040
},
4141
"require": {
42-
"php": "^7.4|^8.0"
42+
"php": "^8.0"
4343
},
4444
"require-dev": {
4545
"squizlabs/php_codesniffer": "3.7.1"

functions.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
*/
3131

3232
try {
33-
\Roots\bootloader();
33+
\Roots\bootloader()->boot();
3434
} catch (Throwable $e) {
3535
wp_die(
3636
__('You need to install Acorn to use this theme.', 'sage'),
3737
'',
3838
[
39-
'link_url' => 'https://docs.roots.io/acorn/2.x/installation/',
39+
'link_url' => 'https://roots.io/acorn/docs/installation/',
4040
'link_text' => __('Acorn Docs: Installation', 'sage'),
4141
]
4242
);
@@ -63,17 +63,3 @@
6363
);
6464
}
6565
});
66-
67-
/*
68-
|--------------------------------------------------------------------------
69-
| Enable Sage Theme Support
70-
|--------------------------------------------------------------------------
71-
|
72-
| Once our theme files are registered and available for use, we are almost
73-
| ready to boot our application. But first, we need to signal to Acorn
74-
| that we will need to initialize the necessary service providers built in
75-
| for Sage when booting.
76-
|
77-
*/
78-
79-
add_theme_support('sage');

0 commit comments

Comments
 (0)