Skip to content
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

Enhancement: Allow to set OutputWriter #342

Merged

Conversation

localheinz
Copy link
Contributor

This PR

  • asserts that an instance of OutputWriter can be injected via constructor
  • asserts that an instance of OutputWriter is created otherwise
  • asserts that an instance of OutputWriter can be injected via mutator

Use Case

When fetching a migration configuration from a container, you don't have an OutputWriter yet, you don't even have an Output yet (you may not even need it). So, wiring up both OutputWriter and Output in the container seems like overkill.

Being able to set the OutputWriter, however, when you need it, would be nice.

@localheinz localheinz force-pushed the feature/allow-to-set-output-writer branch 3 times, most recently from bf324bb to 167d3db Compare August 18, 2015 12:11
@localheinz localheinz force-pushed the feature/allow-to-set-output-writer branch from 8676e84 to df29f93 Compare August 18, 2015 12:13
mikeSimonson added a commit that referenced this pull request Aug 18, 2015
…riter

Enhancement: Allow to set OutputWriter
@mikeSimonson mikeSimonson merged commit ff3fb66 into doctrine:master Aug 18, 2015
@localheinz localheinz deleted the feature/allow-to-set-output-writer branch August 18, 2015 13:29
@localheinz
Copy link
Contributor Author

Thank you, @mikeSimonson!

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.

2 participants