From cace9f778de7af71f686a58bd2f0726a87dd0e80 Mon Sep 17 00:00:00 2001 From: rivanuff <16398970+rivanuff@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:33:05 +0100 Subject: [PATCH] fix: remove psr/container provide and unused elasticpress require The provide was added to keep psr/container 1.0.0 out of this plugin's vendor dir after the switch to 10up/elasticpress, which pins it exactly. As published metadata it also tells consuming sites psr/container is supplied here, so a re-resolve drops the real package and breaks illuminate/contracts. Nothing here autoloads ElasticPress code; the integration runs entirely through ep_* filters. --- composer.json | 4 - composer.lock | 275 ++++++++++---------------------------------------- 2 files changed, 51 insertions(+), 228 deletions(-) diff --git a/composer.json b/composer.json index 8a3692b..b2d37f5 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,6 @@ "php": ">=7.4", "johnbillion/extended-cpts": "^5.0", "cmb2/cmb2": "^2.11", - "10up/elasticpress": "^5.0 | ^4.0", "yahnis-elsts/plugin-update-checker": "^5.0" }, "require-dev": { @@ -36,9 +35,6 @@ "symfony/var-dumper": "^5.0", "szepeviktor/phpstan-wordpress": "^1.1" }, - "provide": { - "psr/container": "1.0.0" - }, "autoload": { "psr-4": { "OWC\\OpenPub\\Base\\": "./src/Base" diff --git a/composer.lock b/composer.lock index 53f37ba..37e4894 100644 --- a/composer.lock +++ b/composer.lock @@ -4,84 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "dc7140a2d9c8e3b7ae15783d62d50945", + "content-hash": "a2f459cb09d9d7a40a8e3e3517710034", "packages": [ - { - "name": "10up/elasticpress", - "version": "5.3.3", - "source": { - "type": "git", - "url": "https://github.com/10up/ElasticPress.git", - "reference": "0d3f46308154c9dfa24639097fe8a6608adc5fde" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/10up/ElasticPress/zipball/0d3f46308154c9dfa24639097fe8a6608adc5fde", - "reference": "0d3f46308154c9dfa24639097fe8a6608adc5fde", - "shasum": "" - }, - "require": { - "composer/installers": "^1.0 || ^2.0", - "php": ">=7.4", - "psr/container": "1.0.0" - }, - "require-dev": { - "10up/phpcs-composer": "dev-trunk", - "brianhenryie/strauss": "^0.21.0", - "phpcompatibility/php-compatibility": "dev-develop as 9.99.99", - "phpcompatibility/phpcompatibility-wp": "*", - "phpunit/phpunit": "^9.0.0", - "wpackagist-plugin/woocommerce": "*", - "yoast/phpunit-polyfills": "^4.0" - }, - "type": "wordpress-plugin", - "extra": { - "strauss": { - "classmap_prefix": "ElasticPress_Vendor_Prefixed_", - "constant_prefix": "EP_VENDOR_", - "namespace_prefix": "ElasticPress\\Vendor_Prefixed\\", - "target_directory": "vendor-prefixed" - }, - "installer-paths": { - "vendor/{$name}/": [ - "type:wordpress-plugin", - "type:wordpress-theme" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "GPL-2.0-only" - ], - "authors": [ - { - "name": "Taylor Lovett", - "email": "taylorl@get10up.com" - }, - { - "name": "10up", - "homepage": "https://10up.com" - }, - { - "name": "Aaron Holbrook", - "email": "aaron@10up.com", - "homepage": "https://aaronjholbrook.com" - } - ], - "description": "Supercharge WordPress with Elasticsearch.", - "keywords": [ - "elasticpress", - "elasticsearch", - "plugin", - "search", - "wordpress" - ], - "support": { - "issues": "https://github.com/10up/ElasticPress/issues", - "source": "https://github.com/10up/ElasticPress/tree/5.3.3" - }, - "time": "2026-05-07T18:07:42+00:00" - }, { "name": "cmb2/cmb2", "version": "v2.12.0", @@ -138,152 +62,6 @@ }, "time": "2026-05-31T02:21:57+00:00" }, - { - "name": "composer/installers", - "version": "v2.3.0", - "source": { - "type": "git", - "url": "https://github.com/composer/installers.git", - "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/installers/zipball/12fb2dfe5e16183de69e784a7b84046c43d97e8e", - "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e", - "shasum": "" - }, - "require": { - "composer-plugin-api": "^1.0 || ^2.0", - "php": "^7.2 || ^8.0" - }, - "require-dev": { - "composer/composer": "^1.10.27 || ^2.7", - "composer/semver": "^1.7.2 || ^3.4.0", - "phpstan/phpstan": "^1.11", - "phpstan/phpstan-phpunit": "^1", - "symfony/phpunit-bridge": "^7.1.1", - "symfony/process": "^5 || ^6 || ^7" - }, - "type": "composer-plugin", - "extra": { - "class": "Composer\\Installers\\Plugin", - "branch-alias": { - "dev-main": "2.x-dev" - }, - "plugin-modifies-install-path": true - }, - "autoload": { - "psr-4": { - "Composer\\Installers\\": "src/Composer/Installers" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Kyle Robinson Young", - "email": "kyle@dontkry.com", - "homepage": "https://github.com/shama" - } - ], - "description": "A multi-framework Composer library installer", - "homepage": "https://composer.github.io/installers/", - "keywords": [ - "Dolibarr", - "Eliasis", - "Hurad", - "ImageCMS", - "Kanboard", - "Lan Management System", - "MODX Evo", - "MantisBT", - "Mautic", - "Maya", - "OXID", - "Plentymarkets", - "Porto", - "RadPHP", - "SMF", - "Starbug", - "Thelia", - "Whmcs", - "WolfCMS", - "agl", - "annotatecms", - "attogram", - "bitrix", - "cakephp", - "chef", - "cockpit", - "codeigniter", - "concrete5", - "concreteCMS", - "croogo", - "dokuwiki", - "drupal", - "eZ Platform", - "elgg", - "expressionengine", - "fuelphp", - "grav", - "installer", - "itop", - "known", - "kohana", - "laravel", - "lavalite", - "lithium", - "magento", - "majima", - "mako", - "matomo", - "mediawiki", - "miaoxing", - "modulework", - "modx", - "moodle", - "osclass", - "pantheon", - "phpbb", - "piwik", - "ppi", - "processwire", - "puppet", - "pxcms", - "reindex", - "roundcube", - "shopware", - "silverstripe", - "sydes", - "sylius", - "tastyigniter", - "wordpress", - "yawik", - "zend", - "zikula" - ], - "support": { - "issues": "https://github.com/composer/installers/issues", - "source": "https://github.com/composer/installers/tree/v2.3.0" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2024-06-24T20:46:46+00:00" - }, { "name": "johnbillion/args", "version": "2.5.0", @@ -2366,6 +2144,55 @@ ], "time": "2026-01-27T05:45:00+00:00" }, + { + "name": "psr/container", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/1.1.2" + }, + "time": "2021-11-05T16:50:12+00:00", + "published-time": "2021-11-05T16:53:52+00:00" + }, { "name": "psr/event-dispatcher", "version": "1.0.0", @@ -5716,5 +5543,5 @@ "platform-overrides": { "php": "8.2" }, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.11.0" }