Skip to content

#65 - Deprecate the configuration keys, ignored without notice (no Configuration) - #66

Merged
njoubert-cleverage merged 1 commit into
mainfrom
65
Oct 20, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
65

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #65.

  • New internal DependencyInjection\Configuration with an empty tree (ignoreExtraKeys()): config:dump-reference clever_age_cache_process works, the configured keys are still ignored.
  • load(): configuring a key triggers a deprecation when the container is compiled: Since cleverage/cache-process-bundle 2.3: Configuring "clever_age_cache_process" is deprecated, the bundle has no configuration: the keys "foo" are ignored. They will be rejected in 3.0.
  • In 3.0: remove ignoreExtraKeys() and the deprecation, the unknown keys are rejected.
  • composer.json: require symfony/deprecation-contracts (trigger_deprecation() used directly).
  • Documentation (docs/index.md, Configuration). CHANGELOG.

Tests (extension test): deprecation with keys (merged from several configuration files), no deprecation without key, the Configuration is the one of the extension.

Checked in the container (PHP 8.5, highest dependencies): 77 tests, 100 % of the lines, no risky test (pcov coverage). PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None in 2.3: new deprecation, the keys are still ignored. Rejection of the keys in 3.0.

🤖 Generated with Claude Code

…nfiguration)

The bundle has no configuration: the keys under clever_age_cache_process were ignored
without notice. New internal Configuration with an empty tree (keys still
ignored), deprecation when a key is configured, rejection in 3.0.
Tests, documentation and CHANGELOG updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit c5f6b60 into main Oct 20, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate the configuration keys, ignored without notice (no Configuration)

1 participant