Skip to content

Rewriting logic for accessing services from the console #8714

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

Merged
merged 2 commits into from
Nov 24, 2017
Merged

Rewriting logic for accessing services from the console #8714

merged 2 commits into from
Nov 24, 2017

Conversation

weaverryan
Copy link
Member

Fixes #8713

This is against 3.4, because it is the first time that your commands will be registered as services in practice.

console.rst Outdated

// ...
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use AppBundle\Service\UserManager;

class CreateUserCommand extends ContainerAwareCommand
Copy link
Member

@yceruto yceruto Nov 21, 2017

Choose a reason for hiding this comment

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

Command + use then?

Copy link
Member Author

Choose a reason for hiding this comment

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

of course! Good catch

@weaverryan weaverryan merged commit 4f656f2 into symfony:3.4 Nov 24, 2017
weaverryan added a commit that referenced this pull request Nov 24, 2017
…weaverryan)

This PR was squashed before being merged into the 3.4 branch (closes #8714).

Discussion
----------

Rewriting logic for accessing services from the console

Fixes #8713

This is against 3.4, because it is the first time that your commands will be registered as services in practice.

Commits
-------

4f656f2 fixing bad class
2def992 Rewriting logic for accessing services from the console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants