From fba53838159579a972bc12e10d13a6c44f9ada4f Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 13 Apr 2025 18:59:50 +0200 Subject: [PATCH] Bump min PHP 7.3 and require Grav 1.7 Grav 1.7 requires PHP>=7.3.6 https://learn.getgrav.org/17/advanced/grav-development/grav-17-upgrade-guide#quick-update-guide --- components/plugin/blank/blueprints.yaml.twig | 2 +- components/plugin/blank/composer.json.twig | 2 +- components/plugin/blank/plugin.php.twig | 2 -- components/plugin/flex/blueprints.yaml.twig | 2 +- components/plugin/flex/composer.json.twig | 2 +- components/plugin/flex/plugin.php.twig | 2 -- components/theme/inheritance/blueprints.yaml.twig | 2 +- components/theme/pure-blank/blueprints.yaml.twig | 2 +- components/theme/tailwind-mix/blueprints.yaml.twig | 2 +- components/theme/tailwind/blueprints.yaml.twig | 2 +- 10 files changed, 8 insertions(+), 12 deletions(-) diff --git a/components/plugin/blank/blueprints.yaml.twig b/components/plugin/blank/blueprints.yaml.twig index bd0defd..9d93a58 100644 --- a/components/plugin/blank/blueprints.yaml.twig +++ b/components/plugin/blank/blueprints.yaml.twig @@ -16,7 +16,7 @@ docs: https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize license: MIT dependencies: - - { name: grav, version: '>=1.6.0' } + - { name: grav, version: '>=1.7.0' } form: validation: loose diff --git a/components/plugin/blank/composer.json.twig b/components/plugin/blank/composer.json.twig index 28d8691..9a87345 100644 --- a/components/plugin/blank/composer.json.twig +++ b/components/plugin/blank/composer.json.twig @@ -14,7 +14,7 @@ } ], "require": { - "php": ">=7.1.3" + "php": ">=7.3.6" }, "autoload": { "psr-4": { diff --git a/components/plugin/blank/plugin.php.twig b/components/plugin/blank/plugin.php.twig index 0daecc4..9ecc0be 100644 --- a/components/plugin/blank/plugin.php.twig +++ b/components/plugin/blank/plugin.php.twig @@ -24,8 +24,6 @@ class {{ component.name|camelize }}Plugin extends Plugin { return [ 'onPluginsInitialized' => [ - // Uncomment following line when plugin requires Grav < 1.7 - // ['autoload', 100000], ['onPluginsInitialized', 0] ] ]; diff --git a/components/plugin/flex/blueprints.yaml.twig b/components/plugin/flex/blueprints.yaml.twig index bd0defd..9d93a58 100644 --- a/components/plugin/flex/blueprints.yaml.twig +++ b/components/plugin/flex/blueprints.yaml.twig @@ -16,7 +16,7 @@ docs: https://github.com/{{ githubid }}/grav-plugin-{{ component.name|hyphenize license: MIT dependencies: - - { name: grav, version: '>=1.6.0' } + - { name: grav, version: '>=1.7.0' } form: validation: loose diff --git a/components/plugin/flex/composer.json.twig b/components/plugin/flex/composer.json.twig index 28d8691..9a87345 100644 --- a/components/plugin/flex/composer.json.twig +++ b/components/plugin/flex/composer.json.twig @@ -14,7 +14,7 @@ } ], "require": { - "php": ">=7.1.3" + "php": ">=7.3.6" }, "autoload": { "psr-4": { diff --git a/components/plugin/flex/plugin.php.twig b/components/plugin/flex/plugin.php.twig index f8f5d8a..89c9371 100644 --- a/components/plugin/flex/plugin.php.twig +++ b/components/plugin/flex/plugin.php.twig @@ -29,8 +29,6 @@ class {{ component.name|camelize }}Plugin extends Plugin { return [ 'onPluginsInitialized' => [ - // Uncomment following line when plugin requires Grav < 1.7 - // ['autoload', 100000], ['onPluginsInitialized', 0] ], FlexRegisterEvent::class => [['onRegisterFlex', 0]], diff --git a/components/theme/inheritance/blueprints.yaml.twig b/components/theme/inheritance/blueprints.yaml.twig index 91700a3..f43c920 100644 --- a/components/theme/inheritance/blueprints.yaml.twig +++ b/components/theme/inheritance/blueprints.yaml.twig @@ -16,4 +16,4 @@ readme: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize license: MIT dependencies: - - { name: grav, version: '>=1.6.0' } + - { name: grav, version: '>=1.7.0' } diff --git a/components/theme/pure-blank/blueprints.yaml.twig b/components/theme/pure-blank/blueprints.yaml.twig index b127d15..f083930 100644 --- a/components/theme/pure-blank/blueprints.yaml.twig +++ b/components/theme/pure-blank/blueprints.yaml.twig @@ -16,7 +16,7 @@ readme: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize license: MIT dependencies: - - { name: grav, version: '>=1.6.0' } + - { name: grav, version: '>=1.7.0' } form: validation: loose diff --git a/components/theme/tailwind-mix/blueprints.yaml.twig b/components/theme/tailwind-mix/blueprints.yaml.twig index a592fb7..6821c68 100644 --- a/components/theme/tailwind-mix/blueprints.yaml.twig +++ b/components/theme/tailwind-mix/blueprints.yaml.twig @@ -16,7 +16,7 @@ readme: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize license: MIT dependencies: - - { name: grav, version: '>=1.6.0' } + - { name: grav, version: '>=1.7.0' } form: validation: loose diff --git a/components/theme/tailwind/blueprints.yaml.twig b/components/theme/tailwind/blueprints.yaml.twig index a592fb7..6821c68 100644 --- a/components/theme/tailwind/blueprints.yaml.twig +++ b/components/theme/tailwind/blueprints.yaml.twig @@ -16,7 +16,7 @@ readme: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize license: MIT dependencies: - - { name: grav, version: '>=1.6.0' } + - { name: grav, version: '>=1.7.0' } form: validation: loose