Skip to content

Removed remaining Symfony 5.4 BC layer #7743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented Jan 20, 2025

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? -
Fixed tickets -
Related issues/PRs #7657 #7547
License MIT
Documentation PR -

What's in this PR?

Removing old configurations of Symfony 5.4 since we don't support the version anyways.

Why?

In Sulu 3 the minimum version is 6.4.

Less things we need to port and maintain.

@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch 2 times, most recently from 15e0bd7 to 8b2c6a2 Compare January 20, 2025 18:38
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class AliasForSecurityEncoderCompilerPass implements CompilerPassInterface
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically the class is not deprecated, but the contents of the method is. Should I still remove it?

@mamazu mamazu added DX Affecting the end developer Technical Debt Impacts code quality, no or just small impact on end developers and users labels Jan 28, 2025
@@ -39,6 +39,7 @@
</parameters>

<services>
<service id="sulu_security.encoder_factory" alias="security.password_hasher_factory" />
Copy link
Member

@alexander-schranz alexander-schranz Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could remove the sulu_security.encoder_factory and replace it with security.password_hasher_factory as the bc layer between encoder and hasher is not longer required.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And type it now as PasswordHasherFactoryInterface:

instead of the phpdoc

@mamazu mamazu marked this pull request as draft January 30, 2025 09:56
@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch from 967f4ae to 97deaca Compare January 30, 2025 09:58
@mamazu
Copy link
Contributor Author

mamazu commented Jan 30, 2025

This also means the entire functionality around the Salt can be removed. As the modern Symfony algorithms don't use that.

@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch 2 times, most recently from 55b9140 to e2008e7 Compare January 30, 2025 10:35
@mamazu
Copy link
Contributor Author

mamazu commented Jan 30, 2025

@alexander-schranz The UserManager changes seem to cause problems in the tests but in the dev container the service exists.

@alexander-schranz
Copy link
Member

lets revert that and keep the on-invalid="null" for the user manager

@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch from e2008e7 to 978e770 Compare January 30, 2025 11:56
@mamazu mamazu marked this pull request as ready for review January 30, 2025 12:33
@mamazu
Copy link
Contributor Author

mamazu commented Jan 30, 2025

Done

@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch 2 times, most recently from 9485163 to 34c6715 Compare February 5, 2025 17:06
@mamazu mamazu closed this Feb 5, 2025
@mamazu mamazu reopened this Feb 5, 2025
@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch 2 times, most recently from db1b28d to 7c6ed9a Compare March 13, 2025 14:10
@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch from 7c6ed9a to 2c342bb Compare March 28, 2025 18:57
@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch from 2c342bb to 767eb71 Compare April 26, 2025 19:31
@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch 4 times, most recently from c66af5b to 11a0dfa Compare April 26, 2025 20:06
@mamazu mamazu force-pushed the cleaning_up_symfony_5.4 branch from 1dd29e6 to 12f87f0 Compare June 26, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer Technical Debt Impacts code quality, no or just small impact on end developers and users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants