Skip to content

[2.0.2] Auto-registration of the command deprecated #2654

@Hanmac

Description

@Hanmac

even after the commands are registered as services in the command.xml with #2634 for FOSUser 2.0.2, it does still show warnings like this:

[2017-12-05 16:23:55] php.INFO: User Deprecated: Auto-registration of the command "FOS\UserBundle\Command\ActivateUserCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based service discovery instead.
[2017-12-05 16:23:55] php.INFO: User Deprecated: Auto-registration of the command "FOS\UserBundle\Command\ChangePasswordCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based service discovery instead.
[2017-12-05 16:23:55] php.INFO: User Deprecated: Auto-registration of the command "FOS\UserBundle\Command\CreateUserCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based service discovery instead.
[2017-12-05 16:23:55] php.INFO: User Deprecated: Auto-registration of the command "FOS\UserBundle\Command\DeactivateUserCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based service discovery instead.
[2017-12-05 16:23:55] php.INFO: User Deprecated: Auto-registration of the command "FOS\UserBundle\Command\DemoteUserCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based service discovery instead.
[2017-12-05 16:23:55] php.INFO: User Deprecated: Auto-registration of the command "FOS\UserBundle\Command\PromoteUserCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based service discovery instead.

i don't know what the correct way would be, because other bundles seems to have defined it the same way but don't show any logs
but swiftmailer-bundle did function registerCommands as noop function

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