From c8b6cd23aece93ed2418cfd35c0f0cd9437776a5 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 25 Apr 2024 17:18:48 -0400 Subject: [PATCH] require features module --- bootstrap.php | 2 +- composer.json | 3 ++- composer.lock | 58 +++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 59 insertions(+), 4 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 15434a1..c460166 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -4,7 +4,7 @@ if ( function_exists( 'add_action' ) ) { - add_action( + add_filter( 'newfold/features/filter/isEnabled/staging', function($value) { if ( 'atomic' === getContext( 'platform' ) ) { diff --git a/composer.json b/composer.json index 29437e8..6a839ca 100644 --- a/composer.json +++ b/composer.json @@ -47,6 +47,7 @@ } }, "require": { - "newfold-labs/wp-module-context": "^1.0" + "newfold-labs/wp-module-context": "^1.0", + "newfold-labs/wp-module-features": "dev-main" } } \ No newline at end of file diff --git a/composer.lock b/composer.lock index 8188a24..d611ae5 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9825283ccab2a4bab9d08c5ed304f60c", + "content-hash": "27083de06da1ae46c76532107e2f8eaa", "packages": [ { "name": "doctrine/inflector", @@ -156,6 +156,58 @@ }, "time": "2024-02-22T18:22:13+00:00" }, + { + "name": "newfold-labs/wp-module-features", + "version": "dev-main", + "source": { + "type": "git", + "url": "https://github.com/newfold-labs/wp-module-features.git", + "reference": "b8642cadff5ec6909c134fa87c605b5de4d2585a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/newfold-labs/wp-module-features/zipball/b8642cadff5ec6909c134fa87c605b5de4d2585a", + "reference": "b8642cadff5ec6909c134fa87c605b5de4d2585a", + "shasum": "" + }, + "require-dev": { + "newfold-labs/wp-php-standards": "^1.2" + }, + "default-branch": true, + "type": "library", + "autoload": { + "psr-4": { + "NewfoldLabs\\WP\\Module\\Features\\": "includes" + } + }, + "scripts": { + "fix": [ + "vendor/bin/phpcbf . --standard=phpcs.xml" + ], + "lint": [ + "vendor/bin/phpcs . --standard=phpcs.xml -s" + ] + }, + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Micah Wood", + "homepage": "https://wpscholar.com" + }, + { + "name": "Evan Mullins", + "homepage": "https://evanmullins.com" + } + ], + "description": "A module for providing an interface for features.", + "support": { + "source": "https://github.com/newfold-labs/wp-module-features/tree/main", + "issues": "https://github.com/newfold-labs/wp-module-features/issues" + }, + "time": "2024-04-19T20:13:00+00:00" + }, { "name": "wp-forge/helpers", "version": "2.0", @@ -806,7 +858,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "newfold-labs/wp-module-features": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": [],