diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f747f58..afd107f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/composer.json b/composer.json index 97e64d1..bec4169 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,8 @@ } }, "require": { - "php": ">=8.1" + "php": ">=8.2", + "roots/acorn": "v5.0.0-beta.2" }, "require-dev": { "laravel/pint": "^1.13" diff --git a/functions.php b/functions.php index 9b1b0c0..b9f010d 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,9 @@ '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); /* |--------------------------------------------------------------------------