Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Conversation

@toadbeatz
Copy link

// vendor/friendsofsymfony/user-bundle/Model/User.php

...
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
...

//add implements PasswordAuthenticatedUserInterface
abstract class User implements UserInterface,PasswordAuthenticatedUserInterface, EquatableInterface, \Serializable
{

.....

//add :?string to be compatible with PasswordAuthenticatedUserInterface
public function getPassword():?string
{
}

...
}

XWB and others added 30 commits January 8, 2020 18:25
Switch to short array syntax and run CS fixer
Revert "Bump the default minimal password length to 8 characters"
Make 2.x tests green again
Revert UserManagerInterface::updateUser() BC break
Safe option on XML mapping was removed on doctrine/mongodb-odm 2.0
Changed suggested example encoder from bcrypt to auto
stof added 30 commits June 25, 2024 10:35
Enable the static analysis CI workflow for the 3.x branch
Deprecate the TwigSwiftMailer implementation
Remove the reference to ZetaWebmailBundle in the documentation
Remove the implementation of the old UserProviderInterface method
Remove unnecessary compatibility checks in tests
Convert XML config files to PHP or Yaml
The PasswordUpdater implementation resets the plain password to `null`
after hashing the password, marking the fact that a next code (done in a
Doctrine listener for instance) would not need to hash anything anymore.
Instead of relying on `UserInterface::eraseCredentials` which is
deprecated in Symfony 7.3+ and not guaranteed to implement this behavior
if the entity overrides the method, the `null` is now set explicitly.
This is technically a BC break for projects extending this class and
overriding the method. However, there is no use case for extending this
class instead of implementing the Symfony interface directly.
Symfony has deprecated the XML format for route definitions. The bundle
now ships PHP routing files in addition to the XML ones (with tests
ensuring they are in sync) and the documentation uses the PHP files.
The XML files will be removed in the next major version of the bundle as
removing them is a BC break.
Provide PHP routing files in parallel of the XML ones
Install phpunit as a dev dependency directly
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.