You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application works, but calling debug:container causes the error below.
[ERROR 1866] Element '{http://symfony.com/schema/dic/symfony}limiter', attribute 'policy': The attribute 'policy' is not allowed. (in /var/www/ - line 16, column 0)
Further digging in the code led me to a probable error in the XSD. The policy attribute does not appear in XSD, but we see strategy. When we use strategy we get the following error within the whole application.
Unrecognized option "strategy" under "framework.rate_limiter.limiters.access_setting_update". Available options are "cache_pool", "interval", "limit", "lock_factory", "policy", "rate", "storage_service".
How to reproduce
Install Rate Limiter
Setup configuration in XML
Run debug:container console command
Possible Solution
Change attribute strategy to policy in rate_limiter_limiter section in symfony-1.0.xsd.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
…in XSD (MatTheCat)
This PR was merged into the 5.4 branch.
Discussion
----------
[FrameworkBundle] Rename limiter’s `strategy` to `policy` in XSD
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#49671
| License | MIT
| Doc PR | N/A
#38664 renamed `strategy` to `policy` but did not update the XSD.
Commits
-------
c19711c [FrameworkBundle] Rename limiter’s `strategy` to `policy` in XSD
Symfony version(s) affected
5.4+
Description
I'm using the XML version config.
The application works, but calling
debug:container
causes the error below.[ERROR 1866] Element '{http://symfony.com/schema/dic/symfony}limiter', attribute 'policy': The attribute 'policy' is not allowed. (in /var/www/ - line 16, column 0)
Further digging in the code led me to a probable error in the XSD. The
policy
attribute does not appear in XSD, but we seestrategy
. When we usestrategy
we get the following error within the whole application.Unrecognized option "strategy" under "framework.rate_limiter.limiters.access_setting_update". Available options are "cache_pool", "interval", "limit", "lock_factory", "policy", "rate", "storage_service".
How to reproduce
debug:container
console commandPossible Solution
Change attribute
strategy
topolicy
inrate_limiter_limiter
section insymfony-1.0.xsd
.Additional Context
No response
The text was updated successfully, but these errors were encountered: