Skip to content

Conversation

@ossinkine
Copy link

Prepare the bundle for Symfony 4.0
Relates to #2632

@XWB
Copy link
Member

XWB commented Nov 29, 2017

Any clue why Scrutinizer failed?

@ossinkine
Copy link
Author

@XWB I've just rebased the PR and Scrutinizer has passed

@ossinkine
Copy link
Author

And also I've replaced service id with FQCN

<service id="FOS\UserBundle\Command\ActivateUserCommand" class="FOS\UserBundle\Command\ActivateUserCommand">
<tag name="console.command" />
</service>
<service id="FOS\UserBundle\Command\ChangePasswordCommand" class="FOS\UserBundle\Command\ChangePasswordCommand">
Copy link
Member

Choose a reason for hiding this comment

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

please don't use FQCN as service ids. We don't want to register these classes in the autowirable types

<tag name="console.command" />
</service>
<service id="FOS\UserBundle\Command\ChangePasswordCommand" class="FOS\UserBundle\Command\ChangePasswordCommand">
<tag name="console.command" />
Copy link
Member

Choose a reason for hiding this comment

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

please add the command attribute with the command name in all tags, so that commands can be lazy-loaded in Symfony 3.4+

@ossinkine
Copy link
Author

@stof Please review

@XWB XWB merged commit 5c3ecf1 into FriendsOfSymfony:master Nov 29, 2017
@XWB
Copy link
Member

XWB commented Nov 29, 2017

Thanks.

@soullivaneuh
Copy link

@XWB May we have a new patch release for this? Symfony 4 is stable from a while and commands does not appears with the current stable version of this bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants