Skip to content

Commit

Permalink
🔧⬆️ Acorn v5 (#3201)
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs authored Jan 4, 2025
1 parent a969be5 commit 256128b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: ['8.1', '8.2']
php: ['8.2']

steps:
- name: Checkout the project
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
}
},
"require": {
"php": ">=8.1"
"php": ">=8.2",
"roots/acorn": "v5.0.0-beta.2"
},
"require-dev": {
"laravel/pint": "^1.13"
Expand Down
26 changes: 14 additions & 12 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

use Roots\Acorn\Application;
use Roots\Acorn\Configuration\Exceptions;
use Roots\Acorn\Configuration\Middleware;

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
Expand Down Expand Up @@ -29,18 +33,16 @@
|
*/

if (! function_exists('\Roots\bootloader')) {
wp_die(
__('You need to install Acorn to use this theme.', 'sage'),
'',
[
'link_url' => 'https://roots.io/acorn/docs/installation/',
'link_text' => __('Acorn Docs: Installation', 'sage'),
]
);
}

\Roots\bootloader()->boot();
add_action('after_setup_theme', function () {
Application::configure()
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
//
})
->boot();
}, 0);

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 256128b

Please sign in to comment.