Ugrading 3 more libraries to unblock Symfony 7 upgrade #14847
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Another blocker when trying to update symfony packages is
symfony/dependency-injection
. Here is the list of dependencies that are blocking this symfony package upgrade:Among those is the
sensio/framework-extra-bundle
which isn't actually a direct Mautic dependency. These are the libraries that require this package:Let's update all 3 libraries that came up from the above research:
Here are the changes made my this command:
And here is the improvement that this PR comes up with. The
klapaudius/oauth-server-bundle
must be upgraded together with Symfony as there is no version that support Symfony 6 and 7 so that cannot be done independently.📋 Steps to test this PR:
exercise/htmlpurifier-bundle
is used for safe rendering of user-input HTML into Mautic user interface. Test a description with some HTML formatting on any entity. For example a segment. Ideally also test that it cannot execute any JS. Like<script>alert('XSS')</script>
. It shouldn't show any alert.friendsofsymfony/rest-bundle
is used for REST API. This will be tested by running the API Library tests.noxlogic/ratelimit-bundle
is used for rate limiting. Unsure how to test that. But I found these docs.