Skip to content

Prep Security (make:user) for 6.0 release #984

Closed
@weaverryan

Description

@weaverryan

Currently, for Symfony 5.x, we still generate (in make:user) deprecated methods (because we need to). For example, if I run make:user but choose NO to needing a password, it generates:

// ...
class User implements UserInterface
{
    // ...

    /**
     * This method can be removed in Symfony 6.0 - is not needed for apps that do not check user passwords.
     *
     * @see PasswordAuthenticatedUserInterface
     */
    public function getPassword(): ?string
    {
        return null;
    }
}

We need to prep MakerBundle before the 6.0 release to be smart enough to not generate these anymore (if you're using 6.0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions