File tree Expand file tree Collapse file tree 5 files changed +9
-23
lines changed
Expand file tree Collapse file tree 5 files changed +9
-23
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 22
33namespace 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}
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 3030*/
3131
3232try {
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 );
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 ' );
You can’t perform that action at this time.
0 commit comments